i2c: pasemi: Use dev_name instead of port number
authorSven Peter <sven@svenpeter.dev>
Fri, 8 Oct 2021 16:35:24 +0000 (18:35 +0200)
committerWolfram Sang <wsa@kernel.org>
Mon, 11 Oct 2021 09:44:59 +0000 (11:44 +0200)
commit07e820d4fcb000d5dd72218f4334f2a210f75a81
treef73bb19fcad20e0e51d93532fd67ffa7e1b6b5f4
parent3a7442ac1d1bfbe17f7c6cbc69756c529d7dda14
i2c: pasemi: Use dev_name instead of port number

Right now the i2c adapter name includes the port number which can
indirectly be used to identify the device. Replace that with dev_name
to directly identify the device and to also allow this to work correctly
once we add platform support.

Signed-off-by: Sven Peter <sven@svenpeter.dev>
Acked-by: Olof Johansson <olof@lixom.net>
Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-pasemi.c