We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73eff86 commit f636fb0Copy full SHA for f636fb0
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
@@ -831,8 +831,7 @@ EXPORT_SYMBOL_GPL(cros_ec_sensors_core_write);
831
832
static int __maybe_unused cros_ec_sensors_resume(struct device *dev)
833
{
834
- struct platform_device *pdev = to_platform_device(dev);
835
- struct iio_dev *indio_dev = platform_get_drvdata(pdev);
+ struct iio_dev *indio_dev = dev_get_drvdata(dev);
836
struct cros_ec_sensors_core_state *st = iio_priv(indio_dev);
837
int ret = 0;
838
0 commit comments