diff options
author | Hans de Goede <hdegoede@redhat.com> | 2017-10-11 11:41:19 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-10-27 15:51:51 +0200 |
commit | 728fe6cef27444b6575c5e7ab5de13274610488b (patch) | |
tree | 81c595f3b02d6eca47c2900ce624d4973ce285b2 /drivers/i2c/busses/i2c-cht-wc.c | |
parent | Linux 4.14-rc6 (diff) | |
download | linux-728fe6cef27444b6575c5e7ab5de13274610488b.tar.xz linux-728fe6cef27444b6575c5e7ab5de13274610488b.zip |
i2c: Allow overriding dev_name through board_info
For devices not instantiated through ACPI the i2c-client's device-name
gets set to <busnr>-<addr> by default, e.g. "0-0022" this means that
the device-name is dependent on the order in which the i2c-busses are
enumerated.
In some cases having a predictable constant device-name is desirable,
for example on non device-tree platforms the link between a regulator
and its consumers is specified by the platform code by setting
regulator_init_data.consumers. This array identifies the regulator's
consumers by dev_name and supply(-name). Which requires a constant
dev_name.
This commit adds a dev_name field to i2c_board_info allowing
platform code to set a contstant dev_name so that the device can
be identified by its dev_name in other platform code.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mark Brown <broonie@kernel.org> (live at ELCE17)
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> (live at ELCE17)
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-cht-wc.c')
0 files changed, 0 insertions, 0 deletions