iio:adc: drop assign iio_info.driver_module and iio_trigger_ops.owner
The equivalent of both of these are now done via macro magic when the relevant register calls are made. The actual structure elements will shortly go away. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:

committed by
Jonathan Cameron

parent
04581681df
commit
52b31bcc93
@@ -479,7 +479,6 @@ static const struct iio_info dln2_adc_info = {
|
||||
.read_raw = dln2_adc_read_raw,
|
||||
.write_raw = dln2_adc_write_raw,
|
||||
.update_scan_mode = dln2_update_scan_mode,
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static irqreturn_t dln2_adc_trigger_h(int irq, void *p)
|
||||
@@ -604,10 +603,6 @@ static void dln2_adc_event(struct platform_device *pdev, u16 echo,
|
||||
iio_trigger_poll(dln2->trig);
|
||||
}
|
||||
|
||||
static const struct iio_trigger_ops dln2_adc_trigger_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int dln2_adc_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
@@ -665,7 +660,6 @@ static int dln2_adc_probe(struct platform_device *pdev)
|
||||
dev_err(dev, "failed to allocate trigger\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
dln2->trig->ops = &dln2_adc_trigger_ops;
|
||||
iio_trigger_set_drvdata(dln2->trig, dln2);
|
||||
devm_iio_trigger_register(dev, dln2->trig);
|
||||
iio_trigger_set_immutable(indio_dev, dln2->trig);
|
||||
|
Reference in New Issue
Block a user