Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hwmon_device_register() is deprecated #7

Open
MordicusEtCubitus opened this issue Sep 18, 2022 · 0 comments
Open

hwmon_device_register() is deprecated #7

MordicusEtCubitus opened this issue Sep 18, 2022 · 0 comments

Comments

@MordicusEtCubitus
Copy link

MordicusEtCubitus commented Sep 18, 2022

Hi,
Thanks for providing this nice module.
Since I have migrated to last Linux mint using kernel 5.15.0-46-generic I've got this issue in dmesg:

[ 5710.372310] clevo_xsm_wmi clevo_xsm_wmi: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info()

I'm going to try this : https://lkml.org/lkml/2019/4/30/1363

I've edited the .c file like this:

/* clevo_hwmon->dev = hwmon_device_register(dev); */
clevo_hwmon->dev = hwmon_device_register_with_info(dev, NULL,
					clevo_hwmon, NULL, NULL);	

It does compile and clevo dialog box show the options for colors that were not visible before, but I don't see any color change
I may reboot ? But cannot right now.

Not sure this is enough, I don't know the basics of kernel modules, so, sure, I may have miss other requested changes

Thanks for helping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant