Lines Matching +full:no +full:- +full:reset +full:- +full:on +full:- +full:power +full:- +full:off
1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2003,2004 Hewlett-Packard Company
17 /* Notes on locking:
19 * lcd_device->ops_lock is an internal backlight lock protecting the ops
20 * field and no code outside the core should need to touch it.
25 * Most drivers don't need locking on their get_power() method.
36 /* The maximum value for contrast (read-only) */
41 /* Get the LCD panel power status (0: full on, 1..3: controller
42 power on, flat panel power off, 4: full off), see FB_BLANK_XXX */
44 /* Enable or disable power to the LCD (0: on; 4: off, see FB_BLANK_XXX) */
45 int (*set_power)(struct lcd_device *, int power);
46 /* Get the current contrast setting (0-max_contrast) */
74 /* reset lcd panel device. */
75 int (*reset)(struct lcd_device *ld); member
76 /* on or off to lcd panel. if 'enable' is 0 then
77 lcd power off and 1, lcd power on. */
84 or high to low that is dependent on whether reset gpio is
87 /* stable time needing to become lcd power on. */
89 /* stable time needing to become lcd power off. */
96 static inline void lcd_set_power(struct lcd_device *ld, int power) in lcd_set_power() argument
98 mutex_lock(&ld->update_lock); in lcd_set_power()
99 if (ld->ops && ld->ops->set_power) in lcd_set_power()
100 ld->ops->set_power(ld, power); in lcd_set_power()
101 mutex_unlock(&ld->update_lock); in lcd_set_power()
117 return dev_get_drvdata(&ld_dev->dev); in lcd_get_data()