Skip to content

Commit

Permalink
iio:magnetometer: drop assign iio_info.driver_module and iio_trigger_…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Reviewed-by: Lars-Peter Clausen <[email protected]>
  • Loading branch information
jic23 committed Aug 22, 2017
1 parent 4166b47 commit 7f30726
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion drivers/iio/magnetometer/ak8974.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,6 @@ static const unsigned long ak8974_scan_masks[] = { 0x7, 0 };

static const struct iio_info ak8974_info = {
.read_raw = &ak8974_read_raw,
.driver_module = THIS_MODULE,
};

static bool ak8974_writeable_reg(struct device *dev, unsigned int reg)
Expand Down
1 change: 0 additions & 1 deletion drivers/iio/magnetometer/ak8975.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ static const unsigned long ak8975_scan_masks[] = { 0x7, 0 };

static const struct iio_info ak8975_info = {
.read_raw = &ak8975_read_raw,
.driver_module = THIS_MODULE,
};

#ifdef CONFIG_ACPI
Expand Down
2 changes: 0 additions & 2 deletions drivers/iio/magnetometer/bmc150_magn.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,6 @@ static const struct iio_info bmc150_magn_info = {
.attrs = &bmc150_magn_attrs_group,
.read_raw = bmc150_magn_read_raw,
.write_raw = bmc150_magn_write_raw,
.driver_module = THIS_MODULE,
};

static const unsigned long bmc150_magn_scan_masks[] = {
Expand Down Expand Up @@ -811,7 +810,6 @@ static int bmc150_magn_data_rdy_trigger_set_state(struct iio_trigger *trig,
static const struct iio_trigger_ops bmc150_magn_trigger_ops = {
.set_trigger_state = bmc150_magn_data_rdy_trigger_set_state,
.try_reenable = bmc150_magn_trig_try_reen,
.owner = THIS_MODULE,
};

static int bmc150_magn_buffer_preenable(struct iio_dev *indio_dev)
Expand Down
1 change: 0 additions & 1 deletion drivers/iio/magnetometer/hid-sensor-magn-3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ static int magn_3d_write_raw(struct iio_dev *indio_dev,
}

static const struct iio_info magn_3d_info = {
.driver_module = THIS_MODULE,
.read_raw = &magn_3d_read_raw,
.write_raw = &magn_3d_write_raw,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/iio/magnetometer/hmc5843_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@ static const struct iio_info hmc5843_info = {
.read_raw = &hmc5843_read_raw,
.write_raw = &hmc5843_write_raw,
.write_raw_get_fmt = &hmc5843_write_raw_get_fmt,
.driver_module = THIS_MODULE,
};

static const unsigned long hmc5843_scan_masks[] = {0x7, 0};
Expand Down
1 change: 0 additions & 1 deletion drivers/iio/magnetometer/mag3110.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ static const struct iio_info mag3110_info = {
.attrs = &mag3110_group,
.read_raw = &mag3110_read_raw,
.write_raw = &mag3110_write_raw,
.driver_module = THIS_MODULE,
};

static const unsigned long mag3110_scan_masks[] = {0x7, 0xf, 0};
Expand Down
1 change: 0 additions & 1 deletion drivers/iio/magnetometer/mmc35240.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ static int mmc35240_write_raw(struct iio_dev *indio_dev,
}

static const struct iio_info mmc35240_info = {
.driver_module = THIS_MODULE,
.read_raw = mmc35240_read_raw,
.write_raw = mmc35240_write_raw,
.attrs = &mmc35240_attribute_group,
Expand Down
2 changes: 0 additions & 2 deletions drivers/iio/magnetometer/st_magn_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ static const struct attribute_group st_magn_attribute_group = {
};

static const struct iio_info magn_info = {
.driver_module = THIS_MODULE,
.attrs = &st_magn_attribute_group,
.read_raw = &st_magn_read_raw,
.write_raw = &st_magn_write_raw,
Expand All @@ -445,7 +444,6 @@ static const struct iio_info magn_info = {

#ifdef CONFIG_IIO_TRIGGER
static const struct iio_trigger_ops st_magn_trigger_ops = {
.owner = THIS_MODULE,
.set_trigger_state = ST_MAGN_TRIGGER_SET_STATE,
.validate_device = st_sensors_validate_device,
};
Expand Down

0 comments on commit 7f30726

Please sign in to comment.