iio: amplifiers: hmc425a: use pointers in match table
authorDumitru Ceclan <mitrutzceclan@gmail.com>
Tue, 20 Feb 2024 15:34:51 +0000 (17:34 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 28 Feb 2024 19:26:36 +0000 (19:26 +0000)
commit09ac57ac01e16268de9677728606c68d8d513d3a
tree7bb5c27e16aadb09050961e42d6193971ecbb1ab
parent2edb22571e853d0ee69187f08f1269053f326d76
iio: amplifiers: hmc425a: use pointers in match table

Change the match table to use pointers instead of device ids.
Remove type from state as it is not used anymore.

Also make the chip_info structures const.

Signed-off-by: Dumitru Ceclan <mitrutzceclan@gmail.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240220153553.2432-4-mitrutzceclan@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/amplifiers/hmc425a.c