iio: temperature: ltc2983: explicitly set the name in chip_info
authorNuno Sa <nuno.sa@analog.com>
Thu, 22 Feb 2024 12:55:55 +0000 (13:55 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 28 Feb 2024 19:26:36 +0000 (19:26 +0000)
commit5cad30ab5021968ed031f681361fc5d3d1d3cd7e
tree4785424155321a454c06251a83bb028ef1e4797b
parentdccdff35d3028b41a0a6e96dee5b8f36c55ea8d1
iio: temperature: ltc2983: explicitly set the name in chip_info

Getting the part name with 'spi_get_device_id(spi)->name' is not a very
good pattern. Hence, explicitly add the name in the struct chip_info and
use that instead.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240222-ltc2983-misc-improv-v1-4-cf7d4457e98c@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/ltc2983.c