Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73bba670 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Jonathan Cameron
Browse files

iio:health: 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: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent 227e8ef8
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -309,7 +309,6 @@ static const struct iio_info afe4403_iio_info = {
	.attrs = &afe440x_attribute_group,
	.attrs = &afe440x_attribute_group,
	.read_raw = afe4403_read_raw,
	.read_raw = afe4403_read_raw,
	.write_raw = afe4403_write_raw,
	.write_raw = afe4403_write_raw,
	.driver_module = THIS_MODULE,
};
};


static irqreturn_t afe4403_trigger_handler(int irq, void *private)
static irqreturn_t afe4403_trigger_handler(int irq, void *private)
@@ -354,7 +353,6 @@ static irqreturn_t afe4403_trigger_handler(int irq, void *private)
}
}


static const struct iio_trigger_ops afe4403_trigger_ops = {
static const struct iio_trigger_ops afe4403_trigger_ops = {
	.owner = THIS_MODULE,
};
};


#define AFE4403_TIMING_PAIRS			\
#define AFE4403_TIMING_PAIRS			\
+0 −2
Original line number Original line Diff line number Diff line
@@ -328,7 +328,6 @@ static const struct iio_info afe4404_iio_info = {
	.attrs = &afe440x_attribute_group,
	.attrs = &afe440x_attribute_group,
	.read_raw = afe4404_read_raw,
	.read_raw = afe4404_read_raw,
	.write_raw = afe4404_write_raw,
	.write_raw = afe4404_write_raw,
	.driver_module = THIS_MODULE,
};
};


static irqreturn_t afe4404_trigger_handler(int irq, void *private)
static irqreturn_t afe4404_trigger_handler(int irq, void *private)
@@ -355,7 +354,6 @@ static irqreturn_t afe4404_trigger_handler(int irq, void *private)
}
}


static const struct iio_trigger_ops afe4404_trigger_ops = {
static const struct iio_trigger_ops afe4404_trigger_ops = {
	.owner = THIS_MODULE,
};
};


/* Default timings from data-sheet */
/* Default timings from data-sheet */
+0 −1
Original line number Original line Diff line number Diff line
@@ -420,7 +420,6 @@ static int max30100_read_raw(struct iio_dev *indio_dev,
}
}


static const struct iio_info max30100_info = {
static const struct iio_info max30100_info = {
	.driver_module = THIS_MODULE,
	.read_raw = max30100_read_raw,
	.read_raw = max30100_read_raw,
};
};


+0 −1
Original line number Original line Diff line number Diff line
@@ -381,7 +381,6 @@ static int max30102_read_raw(struct iio_dev *indio_dev,
}
}


static const struct iio_info max30102_info = {
static const struct iio_info max30102_info = {
	.driver_module = THIS_MODULE,
	.read_raw = max30102_read_raw,
	.read_raw = max30102_read_raw,
};
};