mbox series

[v3,0/2] Use i2c_get_match_data() instead of device_get_match_data()

Message ID 20230725171624.331283-1-biju.das.jz@bp.renesas.com (mailing list archive)
Headers show
Series Use i2c_get_match_data() instead of device_get_match_data() | expand

Message

Biju Das July 25, 2023, 5:16 p.m. UTC
Use i2c_get_match_data() to get match data for I2C, ACPI and
DT-based matching instead of device_get_match_data() the one for
ACPI/DT-based matching.

This patch series is only compile tested.

v2->v3:
 * Added Rb tag from Geert for patch#1.
 * Added link to lore for Closes tag.
v1->v2:
 * Added patch#1 for fixing adxl313_i2c_id[] table.
 * Added Rb tag from Geert
 * Removed error check as all tables have data pointers.
 * retained Rb tag as the change is trivial.

Biju Das (2):
  iio: accel: adxl313: Fix adxl313_i2c_id[] table
  iio: accel: adxl313: Use i2c_get_match_data

 drivers/iio/accel/adxl313_i2c.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

Comments

Jonathan Cameron July 29, 2023, 11:31 a.m. UTC | #1
On Tue, 25 Jul 2023 18:16:22 +0100
Biju Das <biju.das.jz@bp.renesas.com> wrote:

> Use i2c_get_match_data() to get match data for I2C, ACPI and
> DT-based matching instead of device_get_match_data() the one for
> ACPI/DT-based matching.
> 
> This patch series is only compile tested.

Even though one of these is a fix I'll take them the slow route
to avoid having to hold on to the second patch.

Applied to the togreg branch of iio.git and pushed out as testing
for all the normal reasons.

Jonathan

> 
> v2->v3:
>  * Added Rb tag from Geert for patch#1.
>  * Added link to lore for Closes tag.
> v1->v2:
>  * Added patch#1 for fixing adxl313_i2c_id[] table.
>  * Added Rb tag from Geert
>  * Removed error check as all tables have data pointers.
>  * retained Rb tag as the change is trivial.
> 
> Biju Das (2):
>   iio: accel: adxl313: Fix adxl313_i2c_id[] table
>   iio: accel: adxl313: Use i2c_get_match_data
> 
>  drivers/iio/accel/adxl313_i2c.c | 8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)
>