diff options
author | Mark Brown <broonie@kernel.org> | 2024-07-10 23:05:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-07-10 23:05:45 +0100 |
commit | 450a60ef607900bb9affb0e822fea9726679c512 (patch) | |
tree | 5ec688eeae9b1d713ef3028df03bc9e155d171dd /drivers/i2c/busses/i2c-ocores.c | |
parent | f21711bbdbf0d95a389bfaad54ce444b46830d58 (diff) | |
parent | 3c1ff93b4deea502cd8b0869839557cab2a28b71 (diff) |
regmap: Implement regmap_multi_reg_read()
Merge series from Guenter Roeck <linux@roeck-us.net>:
regmap_multi_reg_read() is similar to regmap_bilk_read() but reads from
an array of non-sequential registers. It is helpful if multiple non-
sequential registers need to be read in a single operation which would
otherwise have to be mutex protected.
The name of the new function was chosen to match the existing function
regmap_multi_reg_write().
Diffstat (limited to 'drivers/i2c/busses/i2c-ocores.c')
-rw-r--r-- | drivers/i2c/busses/i2c-ocores.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index 56a4dabf5a38..4ad670a80a63 100644 --- a/drivers/i2c/busses/i2c-ocores.c +++ b/drivers/i2c/busses/i2c-ocores.c @@ -431,8 +431,8 @@ static int ocores_init(struct device *dev, struct ocores_i2c *i2c) oc_setreg(i2c, OCI2C_PREHIGH, prescale >> 8); /* Init the device */ - oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_IACK); oc_setreg(i2c, OCI2C_CONTROL, ctrl | OCI2C_CTRL_EN); + oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_IACK); return 0; } |