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 7b3825e commit 49f76c4Copy full SHA for 49f76c4
drivers/iio/adc/palmas_gpadc.c
@@ -639,7 +639,7 @@ static int palmas_gpadc_probe(struct platform_device *pdev)
639
640
static int palmas_gpadc_remove(struct platform_device *pdev)
641
{
642
- struct iio_dev *indio_dev = dev_to_iio_dev(&pdev->dev);
+ struct iio_dev *indio_dev = dev_get_drvdata(&pdev->dev);
643
struct palmas_gpadc *adc = iio_priv(indio_dev);
644
645
if (adc->wakeup1_enable || adc->wakeup2_enable)
0 commit comments