Re: [PATCH v3 3/6] i2c: core: Add a format macro for I2C device names

2021-02-22 Thread Wolfram Sang
On Mon, Feb 22, 2021 at 01:07:32PM +, Daniel Scally wrote: > Some places in the kernel allow users to map resources to a device > using device name (for example, in the struct gpiod_lookup_table). > Currently this involves waiting for the I2C client to have been registered > so we can use dev_n

[PATCH v3 3/6] i2c: core: Add a format macro for I2C device names

2021-02-22 Thread Daniel Scally
Some places in the kernel allow users to map resources to a device using device name (for example, in the struct gpiod_lookup_table). Currently this involves waiting for the I2C client to have been registered so we can use dev_name(&client->dev). We want to add a function to allow users to refer to