Home
last modified time | relevance | path

Searched refs:lcdev (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/video/backlight/
Dhx8357.c213 static int hx8357_spi_write_then_read(struct lcd_device *lcdev, in hx8357_spi_write_then_read() argument
217 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_spi_write_then_read()
255 dev_err(&lcdev->dev, "Couldn't send SPI data\n"); in hx8357_spi_write_then_read()
263 static inline int hx8357_spi_write_array(struct lcd_device *lcdev, in hx8357_spi_write_array() argument
266 return hx8357_spi_write_then_read(lcdev, value, len, NULL, 0); in hx8357_spi_write_array()
269 static inline int hx8357_spi_write_byte(struct lcd_device *lcdev, in hx8357_spi_write_byte() argument
272 return hx8357_spi_write_then_read(lcdev, &value, 1, NULL, 0); in hx8357_spi_write_byte()
275 static int hx8357_enter_standby(struct lcd_device *lcdev) in hx8357_enter_standby() argument
279 ret = hx8357_spi_write_byte(lcdev, HX8357_SET_DISPLAY_OFF); in hx8357_enter_standby()
285 ret = hx8357_spi_write_byte(lcdev, HX8357_ENTER_SLEEP_MODE); in hx8357_enter_standby()
[all …]
/linux-6.1.9/drivers/leds/flash/
Dleds-mt6360.c101 static int mt6360_mc_brightness_set(struct led_classdev *lcdev, in mt6360_mc_brightness_set() argument
104 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6360_mc_brightness_set()
117 real_bright = min(lcdev->max_brightness, subled->brightness); in mt6360_mc_brightness_set()
136 static int mt6360_isnk_brightness_set(struct led_classdev *lcdev, in mt6360_isnk_brightness_set() argument
139 struct mt6360_led *led = container_of(lcdev, struct mt6360_led, isnk); in mt6360_isnk_brightness_set()
160 static int mt6360_torch_brightness_set(struct led_classdev *lcdev, in mt6360_torch_brightness_set() argument
164 container_of(lcdev, struct mt6360_led, flash.led_cdev); in mt6360_torch_brightness_set()
178 dev_warn(lcdev->dev, "Please disable strobe first [%d]\n", in mt6360_torch_brightness_set()
243 struct led_classdev *lcdev = &fl_cdev->led_cdev; in mt6360_strobe_set() local
257 dev_warn(lcdev->dev, "Please disable torch first [0x%x]\n", in mt6360_strobe_set()
[all …]
Dleds-rt4505.c52 static int rt4505_torch_brightness_set(struct led_classdev *lcdev, in rt4505_torch_brightness_set() argument
56 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_set()
81 struct led_classdev *lcdev) in rt4505_torch_brightness_get() argument
84 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_get()
92 dev_err(lcdev->dev, "Failed to get LED enable\n"); in rt4505_torch_brightness_get()
104 dev_err(lcdev->dev, "Failed to get LED brightness\n"); in rt4505_torch_brightness_get()
265 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_v4l2_config() local
268 strscpy(config->dev_name, lcdev->dev->kobj.name, in rt4505_init_v4l2_config()
274 s->max = s->val = s->min + (lcdev->max_brightness - 1) * s->step; in rt4505_init_v4l2_config()
294 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_flash_properties() local
[all …]
/linux-6.1.9/include/linux/
Dled-class-flash.h83 struct led_classdev *lcdev) in lcdev_to_flcdev() argument
85 return container_of(lcdev, struct led_classdev_flash, led_cdev); in lcdev_to_flcdev()