Searched refs:aat2870 (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/drivers/mfd/ |
H A D | aat2870-core.c | 92 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 D | Makefile | 211 obj-$(CONFIG_MFD_AAT2870_CORE) += aat2870-core.o
|
/openbmc/linux/drivers/regulator/ |
H A D | aat2870-regulator.c | 20 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 D | Makefile | 18 obj-$(CONFIG_REGULATOR_AAT2870) += aat2870-regulator.o
|
/openbmc/linux/include/linux/mfd/ |
H A D | aat2870.h | 129 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 D | aat2870_bl.c | 42 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 D | opengrok0.0.log | 783 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...] |