mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
power: supply: qcom: Fix SMB5 and QG IIO device names
Fix SMB5 and QG IIO device names in driver files instead of obtaining them from DT node names. Change-Id: I9a8188e94f5ed714b15384fd4dbb59f21d2a5c59 Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
This commit is contained in:
parent
9eaefd9787
commit
e273311dfc
2 changed files with 2 additions and 2 deletions
|
|
@ -2770,7 +2770,7 @@ static int qg_init_iio_psy(struct qpnp_qg *chip,
|
|||
indio_dev->info = &qg_iio_info;
|
||||
indio_dev->dev.parent = chip->dev;
|
||||
indio_dev->dev.of_node = chip->dev->of_node;
|
||||
indio_dev->name = pdev->name;
|
||||
indio_dev->name = "qpnp,qg";
|
||||
indio_dev->modes = INDIO_DIRECT_MODE;
|
||||
indio_dev->channels = chip->iio_chan;
|
||||
indio_dev->num_channels = qg_num_iio_channels;
|
||||
|
|
|
|||
|
|
@ -2934,7 +2934,7 @@ static int smb5_iio_init(struct smb5 *chip, struct platform_device *pdev,
|
|||
|
||||
indio_dev->dev.parent = &pdev->dev;
|
||||
indio_dev->dev.of_node = pdev->dev.of_node;
|
||||
indio_dev->name = pdev->name;
|
||||
indio_dev->name = "qpnp-smb5";
|
||||
indio_dev->modes = INDIO_DIRECT_MODE;
|
||||
indio_dev->channels = chip->iio_chan_ids;
|
||||
indio_dev->num_channels = chip->nchannels;
|
||||
|
|
|
|||
Loading…
Reference in a new issue