Home
last modified time | relevance | path

Searched refs:lm3533 (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/mfd/
A Dlm3533-core.c83 int lm3533_read(struct lm3533 *lm3533, u8 reg, u8 *val) in lm3533_read() argument
103 int lm3533_write(struct lm3533 *lm3533, u8 reg, u8 val) in lm3533_write() argument
150 static int lm3533_set_boost_ovp(struct lm3533 *lm3533, in lm3533_set_boost_ovp() argument
226 static void lm3533_enable(struct lm3533 *lm3533) in lm3533_enable() argument
232 static void lm3533_disable(struct lm3533 *lm3533) in lm3533_disable() argument
259 struct lm3533 *lm3533 = dev_get_drvdata(dev); in show_output() local
296 struct lm3533 *lm3533 = dev_get_drvdata(dev); in store_output() local
362 struct lm3533 *lm3533 = dev_get_drvdata(dev); in lm3533_attr_is_visible() local
488 dev_set_drvdata(lm3533->dev, lm3533); in lm3533_device_init()
590 struct lm3533 *lm3533; in lm3533_i2c_probe() local
[all …]
A Dlm3533-ctrlbank.c41 ret = lm3533_update(cb->lm3533, LM3533_REG_CTRLBANK_ENABLE, in lm3533_ctrlbank_enable()
58 ret = lm3533_update(cb->lm3533, LM3533_REG_CTRLBANK_ENABLE, 0, mask); in lm3533_ctrlbank_disable()
83 ret = lm3533_write(cb->lm3533, reg, val); in lm3533_ctrlbank_set_max_current()
97 ret = lm3533_write(cb->lm3533, reg, val); in lm3533_ctrlbank_set_brightness()
111 ret = lm3533_read(cb->lm3533, reg, val); in lm3533_ctrlbank_get_brightness()
138 ret = lm3533_write(cb->lm3533, reg, val); in lm3533_ctrlbank_set_pwm()
152 ret = lm3533_read(cb->lm3533, reg, val); in lm3533_ctrlbank_get_pwm()
A DMakefile223 obj-$(CONFIG_MFD_LM3533) += lm3533-core.o lm3533-ctrlbank.o
/linux/include/linux/mfd/
A Dlm3533.h21 struct lm3533 { struct
35 struct lm3533 *lm3533; argument
96 extern int lm3533_read(struct lm3533 *lm3533, u8 reg, u8 *val);
97 extern int lm3533_write(struct lm3533 *lm3533, u8 reg, u8 val);
98 extern int lm3533_update(struct lm3533 *lm3533, u8 reg, u8 val, u8 mask);
/linux/drivers/video/backlight/
A Dlm3533_bl.c27 struct lm3533 *lm3533; member
91 ret = lm3533_read(bl->lm3533, LM3533_REG_CTRLBANK_AB_BCONF, &val); in show_als_en()
122 ret = lm3533_update(bl->lm3533, LM3533_REG_CTRLBANK_AB_BCONF, val, in store_als_en()
139 ret = lm3533_read(bl->lm3533, LM3533_REG_CTRLBANK_AB_BCONF, &val); in show_linear()
173 ret = lm3533_update(bl->lm3533, LM3533_REG_CTRLBANK_AB_BCONF, val, in store_linear()
238 if (!bl->lm3533->have_als) in lm3533_bl_attr_is_visible()
264 struct lm3533 *lm3533; in lm3533_bl_probe() local
273 lm3533 = dev_get_drvdata(pdev->dev.parent); in lm3533_bl_probe()
274 if (!lm3533) in lm3533_bl_probe()
292 bl->lm3533 = lm3533; in lm3533_bl_probe()
[all …]
/linux/drivers/leds/
A Dleds-lm3533.c44 struct lm3533 *lm3533; member
262 ret = lm3533_write(led->lm3533, reg, val); in lm3533_led_delay_set()
343 ret = lm3533_read(led->lm3533, reg, &val); in show_risefalltime()
378 ret = lm3533_write(led->lm3533, reg, val); in store_risefalltime()
412 ret = lm3533_read(led->lm3533, reg, &val); in show_als_channel()
618 if (!led->lm3533->have_als) in lm3533_led_attr_is_visible()
649 struct lm3533 *lm3533; in lm3533_led_probe() local
657 if (!lm3533) in lm3533_led_probe()
675 led->lm3533 = lm3533; in lm3533_led_probe()
691 led->cb.lm3533 = lm3533; in lm3533_led_probe()
[all …]
A DMakefile40 obj-$(CONFIG_LEDS_LM3533) += leds-lm3533.o
/linux/drivers/iio/light/
A Dlm3533-als.c51 struct lm3533 *lm3533; member
75 ret = lm3533_read(als->lm3533, reg, &val); in lm3533_als_get_adc()
143 ret = lm3533_read(als->lm3533, reg, val); in lm3533_als_get_target()
164 ret = lm3533_write(als->lm3533, reg, val); in lm3533_als_set_target()
329 ret = lm3533_read(als->lm3533, reg, val); in lm3533_als_get_threshold()
351 ret = lm3533_read(als->lm3533, reg2, &val2); in lm3533_als_set_threshold()
366 ret = lm3533_write(als->lm3533, reg, val); in lm3533_als_set_threshold()
831 struct lm3533 *lm3533; in lm3533_als_probe() local
838 if (!lm3533) in lm3533_als_probe()
859 als->lm3533 = lm3533; in lm3533_als_probe()
[all …]
A DMakefile32 obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o

Completed in 21 milliseconds