iio: adc: MCP3564: fix hardware identification logic
authorMarius Cristea <marius.cristea@microchip.com>
Wed, 29 Nov 2023 13:56:19 +0000 (15:56 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 4 Dec 2023 13:54:10 +0000 (13:54 +0000)
commit408d4b33c2440600418a1eb9c89eaa27cf5867ad
treedd83df8206002c8cb16e718d6509887de191e0b4
parent85ac6d92fdfd6097a16d9c61363fe1d0272c1604
iio: adc: MCP3564: fix hardware identification logic

In mcp3564_config() fix the hardware identification logic
based on the hardware ID registers. Second part of the code was
disabled by an logic error.
Fix a typo related to the "MODULE_DESCRIPTION".

Fixes: 33ec3e5fc1ea (iio: adc: adding support for MCP3564 ADC)
Signed-off-by: Marius Cristea <marius.cristea@microchip.com>
Link: https://lore.kernel.org/r/20231129135619.63475-1-marius.cristea@microchip.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/mcp3564.c