> This is not acceptable. It is way too generic for a global variable, and it > does not use the gpio API. Besides, the variables would have to be declared > in an include file associated with the code introducing them. > If you want to use gpio pins in the hwmon driver, use the gpio API > ([devm_]gpiod_get() and associated functions). There are lots of examples > in the kernel showing how to do that. Hi Guenter, Thank you for the feedback. I did try and create a driver for both the fan and the psu but I had an issue where the host and linux driver both need to monitor and access it. I made a brief query about it here to the mailing list. (Apologies if this is the incorrect way to share a link) https://lore.kernel.org/all/DM4PR84MB19274817C2D8A751E3218F4888759@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ I am open for trying a different approach, I am just not sure what is the correct way to proceed. Is there a way for the driver to temporarily take the GPIO away from the Host and return it? The host is wanting to hold the GPIO all the time to monitor for change. Another thought I had was perhaps having some duplicate I/Os where there is one for the host consumption and the other for linux kernel driver consumption. Thank you for the assistance, -Nick Hawkins