Skip to content

Commit 408d4b3

Browse files
Marius Cristeajic23
authored andcommitted
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: 33ec3e5 (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>
1 parent 85ac6d9 commit 408d4b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iio/adc/mcp3564.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ static int mcp3564_config(struct iio_dev *indio_dev)
11221122
enum mcp3564_ids ids;
11231123
int ret = 0;
11241124
unsigned int tmp = 0x01;
1125-
bool err = true;
1125+
bool err = false;
11261126

11271127
/*
11281128
* The address is set on a per-device basis by fuses in the factory,
@@ -1509,5 +1509,5 @@ static struct spi_driver mcp3564_driver = {
15091509
module_spi_driver(mcp3564_driver);
15101510

15111511
MODULE_AUTHOR("Marius Cristea <marius.cristea@microchip.com>");
1512-
MODULE_DESCRIPTION("Microchip MCP346x/MCP346xR and MCP356x/MCP346xR ADCs");
1512+
MODULE_DESCRIPTION("Microchip MCP346x/MCP346xR and MCP356x/MCP356xR ADCs");
15131513
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)