Commit 10a0575e authored by Rob Herring's avatar Rob Herring Committed by Guenter Roeck
Browse files

hwmon: (nct6775-i2c) Use i2c_get_match_data()



Use preferred i2c_get_match_data() instead of of_match_device() and
i2c_match_id() to get the driver match data. With this, adjust the
includes to explicitly include the correct headers.

Adjust the 'kinds' enum to not use 0, so that no match data can be
distinguished from a valid enum value.

Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231115205703.3730448-2-robh@kernel.org


[groeck: Use double cast for i2c_get_match_data() to make clang happy]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 5cfc392c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment