]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: mcp9600: Recognize chip id for mcp9601
authorBen Collins <bcollins@watter.com>
Fri, 22 Aug 2025 13:23:53 +0000 (09:23 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Aug 2025 09:35:36 +0000 (10:35 +0100)
commit5efd60c974a2c2647a2ce87fb2e396011274cfed
tree8f60d29ed4c8a4ae0a3b4e5036c97bc2dfdd088d
parent74cae3eb72a07da8f9d623c19d7b74dd028d3861
iio: mcp9600: Recognize chip id for mcp9601

The current driver works with mcp9601, but emits a warning because it
does not recognize the chip id.

MCP9601 is a superset of MCP9600. The drivers works without changes
on this chipset.

However, the 9601 chip supports open/closed-circuit detection if wired
properly, so we'll need to be able to differentiate between them.

Moved "struct mcp9600_data" up in the file since a later patch will
need it and chip_info before the declarations.

Signed-off-by: Ben Collins <bcollins@watter.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250822-upstream-changes-v8-4-40bb1739e3e2@watter.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/Kconfig
drivers/iio/temperature/mcp9600.c