Home
last modified time | relevance | path

Searched refs:aat2870 (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/drivers/mfd/
H A Daat2870-core.c92 static int __aat2870_read(struct aat2870_data *aat2870, u8 addr, u8 *val) in __aat2870_read() argument
97 dev_err(aat2870->dev, "Invalid address, 0x%02x\n", addr); in __aat2870_read()
101 if (!aat2870->reg_cache[addr].readable) { in __aat2870_read()
102 *val = aat2870->reg_cache[addr].value; in __aat2870_read()
106 ret = i2c_master_send(aat2870->client, &addr, 1); in __aat2870_read()
112 ret = i2c_master_recv(aat2870->client, val, 1); in __aat2870_read()
119 dev_dbg(aat2870->dev, "read: addr=0x%02x, val=0x%02x\n", addr, *val); in __aat2870_read()
123 static int __aat2870_write(struct aat2870_data *aat2870, u8 addr, u8 val) in __aat2870_write() argument
129 dev_err(aat2870->dev, "Invalid address, 0x%02x\n", addr); in __aat2870_write()
133 if (!aat2870->reg_cache[addr].writeable) { in __aat2870_write()
[all …]
H A DMakefile211 obj-$(CONFIG_MFD_AAT2870_CORE) += aat2870-core.o
/openbmc/linux/drivers/regulator/
H A Daat2870-regulator.c20 struct aat2870_data *aat2870; member
36 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_set_voltage_sel() local
38 return aat2870->update(aat2870, ri->voltage_addr, ri->voltage_mask, in aat2870_ldo_set_voltage_sel()
45 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_get_voltage_sel() local
49 ret = aat2870->read(aat2870, ri->voltage_addr, &val); in aat2870_ldo_get_voltage_sel()
59 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_enable() local
61 return aat2870->update(aat2870, ri->enable_addr, ri->enable_mask, in aat2870_ldo_enable()
68 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_disable() local
70 return aat2870->update(aat2870, ri->enable_addr, ri->enable_mask, 0); in aat2870_ldo_disable()
76 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_is_enabled() local
[all …]
H A DMakefile18 obj-$(CONFIG_REGULATOR_AAT2870) += aat2870-regulator.o
/openbmc/linux/include/linux/mfd/
H A Daat2870.h129 int (*init)(struct aat2870_data *aat2870);
130 void (*uninit)(struct aat2870_data *aat2870);
133 int (*read)(struct aat2870_data *aat2870, u8 addr, u8 *val);
134 int (*write)(struct aat2870_data *aat2870, u8 addr, u8 val);
135 int (*update)(struct aat2870_data *aat2870, u8 addr, u8 mask, u8 val);
154 int (*init)(struct aat2870_data *aat2870);
155 void (*uninit)(struct aat2870_data *aat2870);
/openbmc/linux/drivers/video/backlight/
H A Daat2870_bl.c42 struct aat2870_data *aat2870 in aat2870_bl_enable() local
45 return aat2870->write(aat2870, AAT2870_BL_CH_EN, in aat2870_bl_enable()
51 struct aat2870_data *aat2870 in aat2870_bl_disable() local
54 return aat2870->write(aat2870, AAT2870_BL_CH_EN, 0x0); in aat2870_bl_disable()
60 struct aat2870_data *aat2870 = in aat2870_bl_update_status() local
73 ret = aat2870->write(aat2870, AAT2870_BLM, in aat2870_bl_update_status()
/openbmc/linux/
H A Dopengrok0.0.log783 2024-12-28 20:09:06.118-0600 FINEST t1139 PendingFileCompleter.doRename: Moved pending as file: '/opengrok/data/xref/openbmc/linux/include/linux/mfd/aat2870.h.gz'
[all...]