Home
last modified time | relevance | path

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

/drivers/mfd/
Dlm3533-core.c83 int lm3533_read(struct lm3533 *lm3533, u8 reg, u8 *val) in lm3533_read() argument
88 ret = regmap_read(lm3533->regmap, reg, &tmp); in lm3533_read()
90 dev_err(lm3533->dev, "failed to read register %02x: %d\n", in lm3533_read()
97 dev_dbg(lm3533->dev, "read [%02x]: %02x\n", reg, *val); in lm3533_read()
103 int lm3533_write(struct lm3533 *lm3533, u8 reg, u8 val) in lm3533_write() argument
107 dev_dbg(lm3533->dev, "write [%02x]: %02x\n", reg, val); in lm3533_write()
109 ret = regmap_write(lm3533->regmap, reg, val); in lm3533_write()
111 dev_err(lm3533->dev, "failed to write register %02x: %d\n", in lm3533_write()
119 int lm3533_update(struct lm3533 *lm3533, u8 reg, u8 val, u8 mask) in lm3533_update() argument
123 dev_dbg(lm3533->dev, "update [%02x]: %02x/%02x\n", reg, val, mask); in lm3533_update()
[all …]
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()
DMakefile224 obj-$(CONFIG_MFD_LM3533) += lm3533-core.o lm3533-ctrlbank.o
/drivers/video/backlight/
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 …]
/drivers/leds/
Dleds-lm3533.c44 struct lm3533 *lm3533; member
104 ret = lm3533_update(led->lm3533, LM3533_REG_PATTERN_ENABLE, val, mask); in lm3533_led_pattern_enable()
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()
444 ret = lm3533_update(led->lm3533, reg, val, mask); in store_als_channel()
462 ret = lm3533_read(led->lm3533, reg, &val); in show_als_en()
494 ret = lm3533_update(led->lm3533, reg, val, mask); in store_als_en()
512 ret = lm3533_read(led->lm3533, reg, &val); in show_linear()
[all …]
DMakefile40 obj-$(CONFIG_LEDS_LM3533) += leds-lm3533.o
/drivers/iio/light/
Dlm3533-als.c51 struct lm3533 *lm3533; member
75 ret = lm3533_read(als->lm3533, reg, &val); in lm3533_als_get_adc()
92 ret = lm3533_read(als->lm3533, LM3533_REG_ALS_ZONE_INFO, &val); in _lm3533_als_get_zone()
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()
283 ret = lm3533_update(als->lm3533, LM3533_REG_ALS_ZONE_INFO, val, mask); in lm3533_als_set_int_mode()
300 ret = lm3533_read(als->lm3533, LM3533_REG_ALS_ZONE_INFO, &val); in lm3533_als_get_int_mode()
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()
[all …]
DMakefile32 obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o