mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
regmap: i3c: switch to use i3c_xfer from i3c_priv_xfer
Switch to use i3c_xfer instead of i3c_priv_xfer because framework will update to support HDR mode. i3c_priv_xfer is now an alias of i3c_xfer. Replace i3c_device_do_priv_xfers() with i3c_device_do_xfers(..., I3C_SDR) to align with the new API. Prepare for removal of i3c_priv_xfer and i3c_device_do_priv_xfers(). Signed-off-by: Frank Li <Frank.Li@nxp.com> Acked-by: Mark Brown <broonie@kernel.org> Link: https://patch.msgid.link/20251028-lm75-v1-3-9bf88989c49c@nxp.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
57c4011d36
commit
79c3ae7ada
|
|
@ -10,7 +10,7 @@ static int regmap_i3c_write(void *context, const void *data, size_t count)
|
|||
{
|
||||
struct device *dev = context;
|
||||
struct i3c_device *i3c = dev_to_i3cdev(dev);
|
||||
struct i3c_priv_xfer xfers[] = {
|
||||
struct i3c_xfer xfers[] = {
|
||||
{
|
||||
.rnw = false,
|
||||
.len = count,
|
||||
|
|
@ -18,7 +18,7 @@ static int regmap_i3c_write(void *context, const void *data, size_t count)
|
|||
},
|
||||
};
|
||||
|
||||
return i3c_device_do_priv_xfers(i3c, xfers, 1);
|
||||
return i3c_device_do_xfers(i3c, xfers, 1, I3C_SDR);
|
||||
}
|
||||
|
||||
static int regmap_i3c_read(void *context,
|
||||
|
|
@ -27,7 +27,7 @@ static int regmap_i3c_read(void *context,
|
|||
{
|
||||
struct device *dev = context;
|
||||
struct i3c_device *i3c = dev_to_i3cdev(dev);
|
||||
struct i3c_priv_xfer xfers[2];
|
||||
struct i3c_xfer xfers[2];
|
||||
|
||||
xfers[0].rnw = false;
|
||||
xfers[0].len = reg_size;
|
||||
|
|
@ -37,7 +37,7 @@ static int regmap_i3c_read(void *context,
|
|||
xfers[1].len = val_size;
|
||||
xfers[1].data.in = val;
|
||||
|
||||
return i3c_device_do_priv_xfers(i3c, xfers, 2);
|
||||
return i3c_device_do_xfers(i3c, xfers, 2, I3C_SDR);
|
||||
}
|
||||
|
||||
static const struct regmap_bus regmap_i3c = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user