mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] hwmon: (corsair-cpro) Change dependency from HID to HIDRAW
@ 2025-06-18  7:28 dongfengweixiao
  2025-06-18 15:41 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: dongfengweixiao @ 2025-06-18  7:28 UTC (permalink / raw)
  To: jdelvare, linux; +Cc: linux-hwmon, linux-kernel, Dee.H.Y

From: "Dee.H.Y" <dongfengweixiao@gmail.com>

This patch updates the dependency of the CORSAIR_CPRO driver in the
hwmon subsystem. Previously, the driver relied on HID, but now it
depends on HIDRAW. This change is aligned with the implementation
in the `ccp_probe()` function, where `HID_CONNECT_HIDRAW` is used,
indicating that the HID raw interface is required for proper operation.

Signed-off-by: Dee.H.Y <dongfengweixiao@gmail.com>
---
 drivers/hwmon/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 08a3c863f80a..3f128cacb486 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -475,7 +475,7 @@ config SENSORS_CHIPCAP2
 
 config SENSORS_CORSAIR_CPRO
 	tristate "Corsair Commander Pro controller"
-	depends on HID
+	depends on HIDRAW
 	help
 	  If you say yes here you get support for the Corsair Commander Pro
 	  controller.
-- 
2.49.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwmon: (corsair-cpro) Change dependency from HID to HIDRAW
  2025-06-18  7:28 [PATCH] hwmon: (corsair-cpro) Change dependency from HID to HIDRAW dongfengweixiao
@ 2025-06-18 15:41 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2025-06-18 15:41 UTC (permalink / raw)
  To: dongfengweixiao, jdelvare, linux; +Cc: linux-hwmon, linux-kernel

On 6/18/25 00:28, dongfengweixiao@gmail.com wrote:
> From: "Dee.H.Y" <dongfengweixiao@gmail.com>
> 
> This patch updates the dependency of the CORSAIR_CPRO driver in the
> hwmon subsystem. Previously, the driver relied on HID, but now it

 From Documentation/process/submitting-patches.rst:

Describe your changes in imperative mood, e.g. "make xyzzy do frotz"
instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy
to do frotz", as if you are giving orders to the codebase to change
its behaviour.

What is "previously" ? The driver always used HID_CONNECT_HIDRAW.

Either case, I do not think this patch is warranted. CONFIG_HIDRAW
creates /dev/hidraw for use by applications. This driver does not
need such an application to work. If you disagree, please provide
logs showing that the driver does not work with CONFIG_HIDRAW=n.

Thanks,
Guenter

> depends on HIDRAW. This change is aligned with the implementation
> in the `ccp_probe()` function, where `HID_CONNECT_HIDRAW` is used,
> indicating that the HID raw interface is required for proper operation.
> 
> Signed-off-by: Dee.H.Y <dongfengweixiao@gmail.com>
> ---
>   drivers/hwmon/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> index 08a3c863f80a..3f128cacb486 100644
> --- a/drivers/hwmon/Kconfig
> +++ b/drivers/hwmon/Kconfig
> @@ -475,7 +475,7 @@ config SENSORS_CHIPCAP2
>   
>   config SENSORS_CORSAIR_CPRO
>   	tristate "Corsair Commander Pro controller"
> -	depends on HID
> +	depends on HIDRAW
>   	help
>   	  If you say yes here you get support for the Corsair Commander Pro
>   	  controller.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-18 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-18  7:28 [PATCH] hwmon: (corsair-cpro) Change dependency from HID to HIDRAW dongfengweixiao
2025-06-18 15:41 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®