You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
i2c: Match dummy devices by type
As the old driver_name/type matching scheme is going away soon, change the dummy device mechanism to use the new matching scheme. This has the downside that dummy i2c clients can no longer choose their name, they'll all appear as "dummy" in sysfs and in log messages. I don't think it is a problem in practice though, as there is little reason to use these i2c clients to log messages. Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
committed by
Jean Delvare
parent
b11a9d8392
commit
60b129d7bf
@@ -227,7 +227,7 @@ static int s35390a_probe(struct i2c_client *client,
|
||||
/* This chip uses multiple addresses, use dummy devices for them */
|
||||
for (i = 1; i < 8; ++i) {
|
||||
s35390a->client[i] = i2c_new_dummy(client->adapter,
|
||||
client->addr + i, "rtc-s35390a");
|
||||
client->addr + i);
|
||||
if (!s35390a->client[i]) {
|
||||
dev_err(&client->dev, "Address %02x unavailable\n",
|
||||
client->addr + i);
|
||||
|
||||
Reference in New Issue
Block a user