Home
last modified time | relevance | path

Searched refs:lp3972 (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/regulator/
Dlp3972.c17 struct lp3972 { struct
186 static u8 lp3972_reg_read(struct lp3972 *lp3972, u8 reg) in lp3972_reg_read() argument
190 mutex_lock(&lp3972->io_lock); in lp3972_reg_read()
192 lp3972_i2c_read(lp3972->i2c, reg, 1, &val); in lp3972_reg_read()
194 dev_dbg(lp3972->dev, "reg read 0x%02x -> 0x%02x\n", (int)reg, in lp3972_reg_read()
197 mutex_unlock(&lp3972->io_lock); in lp3972_reg_read()
202 static int lp3972_set_bits(struct lp3972 *lp3972, u8 reg, u16 mask, u16 val) in lp3972_set_bits() argument
207 mutex_lock(&lp3972->io_lock); in lp3972_set_bits()
209 ret = lp3972_i2c_read(lp3972->i2c, reg, 1, &tmp); in lp3972_set_bits()
212 ret = lp3972_i2c_write(lp3972->i2c, reg, 1, &tmp); in lp3972_set_bits()
[all …]
DMakefile56 obj-$(CONFIG_REGULATOR_LP3972) += lp3972.o