Skip to content
Commit 3f003fda authored by Josua Mayer's avatar Josua Mayer Committed by Guenter Roeck
Browse files

hwmon: (amc6821) add of_match table



Add of_match table for "ti,amc6821" compatible string.
This fixes automatic driver loading by userspace when using device-tree,
and if built as a module like major linux distributions do.

While devices probe just fine with i2c_device_id table, userspace can't
match the "ti,amc6821" compatible string from dt with the plain
"amc6821" device id. As a result, the kernel module can not be loaded.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarJosua Mayer <josua@solid-run.com>
Link: https://lore.kernel.org/r/20240307-amc6821-of-match-v1-1-5f40464a3110@solid-run.com


[groeck: Cleaned up patch description]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 78cc80d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment