Skip to content

Commit 79c3ae7

Browse files
nxpfranklialexandrebelloni
authored andcommitted
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>
1 parent 57c4011 commit 79c3ae7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/base/regmap/regmap-i3c.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ static int regmap_i3c_write(void *context, const void *data, size_t count)
1010
{
1111
struct device *dev = context;
1212
struct i3c_device *i3c = dev_to_i3cdev(dev);
13-
struct i3c_priv_xfer xfers[] = {
13+
struct i3c_xfer xfers[] = {
1414
{
1515
.rnw = false,
1616
.len = count,
1717
.data.out = data,
1818
},
1919
};
2020

21-
return i3c_device_do_priv_xfers(i3c, xfers, 1);
21+
return i3c_device_do_xfers(i3c, xfers, 1, I3C_SDR);
2222
}
2323

2424
static int regmap_i3c_read(void *context,
@@ -27,7 +27,7 @@ static int regmap_i3c_read(void *context,
2727
{
2828
struct device *dev = context;
2929
struct i3c_device *i3c = dev_to_i3cdev(dev);
30-
struct i3c_priv_xfer xfers[2];
30+
struct i3c_xfer xfers[2];
3131

3232
xfers[0].rnw = false;
3333
xfers[0].len = reg_size;
@@ -37,7 +37,7 @@ static int regmap_i3c_read(void *context,
3737
xfers[1].len = val_size;
3838
xfers[1].data.in = val;
3939

40-
return i3c_device_do_priv_xfers(i3c, xfers, 2);
40+
return i3c_device_do_xfers(i3c, xfers, 2, I3C_SDR);
4141
}
4242

4343
static const struct regmap_bus regmap_i3c = {

0 commit comments

Comments
 (0)