Skip to content

Commit 1f08a91

Browse files
nxpfranklialexandrebelloni
authored andcommitted
hwmon: (lm75): 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: Guenter Roeck <linux@roeck-us.net> Link: https://patch.msgid.link/20251028-lm75-v1-1-9bf88989c49c@nxp.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent e01a8ba commit 1f08a91

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/hwmon/lm75.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static int lm75_i3c_reg_read(void *context, unsigned int reg, unsigned int *val)
621621
{
622622
struct i3c_device *i3cdev = context;
623623
struct lm75_data *data = i3cdev_get_drvdata(i3cdev);
624-
struct i3c_priv_xfer xfers[] = {
624+
struct i3c_xfer xfers[] = {
625625
{
626626
.rnw = false,
627627
.len = 1,
@@ -640,7 +640,7 @@ static int lm75_i3c_reg_read(void *context, unsigned int reg, unsigned int *val)
640640
if (reg == LM75_REG_CONF && !data->params->config_reg_16bits)
641641
xfers[1].len--;
642642

643-
ret = i3c_device_do_priv_xfers(i3cdev, xfers, 2);
643+
ret = i3c_device_do_xfers(i3cdev, xfers, 2, I3C_SDR);
644644
if (ret < 0)
645645
return ret;
646646

@@ -658,7 +658,7 @@ static int lm75_i3c_reg_write(void *context, unsigned int reg, unsigned int val)
658658
{
659659
struct i3c_device *i3cdev = context;
660660
struct lm75_data *data = i3cdev_get_drvdata(i3cdev);
661-
struct i3c_priv_xfer xfers[] = {
661+
struct i3c_xfer xfers[] = {
662662
{
663663
.rnw = false,
664664
.len = 3,
@@ -680,7 +680,7 @@ static int lm75_i3c_reg_write(void *context, unsigned int reg, unsigned int val)
680680
data->val_buf[2] = val & 0xff;
681681
}
682682

683-
return i3c_device_do_priv_xfers(i3cdev, xfers, 1);
683+
return i3c_device_do_xfers(i3cdev, xfers, 1, I3C_SDR);
684684
}
685685

686686
static const struct regmap_bus lm75_i3c_regmap_bus = {

0 commit comments

Comments
 (0)