Re: [PATCH] hwmon: (amc6821) add of_match table

From: Guenter Roeck
Date: Thu Mar 07 2024 - 12:19:56 EST


On Thu, Mar 07, 2024 at 12:06:58PM +0100, Josua Mayer wrote:
> 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. COnsequently kernel module ca not be loaded.

Applied, after cleaning up the last sentence above.

Guenter