lkml.org 
[lkml]   [2022]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH v2 0/2] i2c: core: Introduce i2c_client_get_device_id helper
    Date
    Introduces a new i2c helper to query driver match tables and recover the
    identity of the bound device. This helper should help with the migration
    of existing drivers to use the new i2c_driver .probe_new callback, which
    does not provide the device id with the pointer to the driver data as the
    previous .probe callback.

    As part of the patchset, migrated the bmp280 IIO driver to .new_probe
    callback using the new helper.

    Changes from v1 --> v2:
    * Add further clarification that the device queried needs to be bound to
    the driver.
    * Drops extra newline after function return.
    * Discard unrelated style changes.

    Previous version:
    https://lore.kernel.org/all/cover.1667151588.git.ang.iglesiasg@gmail.com/

    Angel Iglesias (2):
    i2c: core: Introduce i2c_client_get_device_id helper function
    iio: pressure: bmp280: convert to i2c's .probe_new()

    drivers/i2c/i2c-core-base.c | 15 +++++++++++++++
    drivers/iio/pressure/bmp280-i2c.c | 6 +++---
    include/linux/i2c.h | 1 +
    3 files changed, 19 insertions(+), 3 deletions(-)


    base-commit: e38fb57870172ed920c206e8d73e2639d83c8847
    --
    2.38.1

    \
     
     \ /
      Last update: 2022-11-06 17:42    [W:3.600 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site