hid: fix extraneous SYSCTL_ADD_INT() options revealed by LINT build

Reviewed by:	hselasky (as part of D28060)
This commit is contained in:
Vladimir Kondratyev
2021-01-09 15:06:01 +03:00
parent 54bbcca4f9
commit 8ffcde2554
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -752,7 +752,7 @@ hidmap_attach(struct hidmap* hm)
TUNABLE_INT_FETCH(tunable, &hm->debug_level);
SYSCTL_ADD_INT(device_get_sysctl_ctx(hm->dev),
SYSCTL_CHILDREN(device_get_sysctl_tree(hm->dev)),
OID_AUTO, "debug", CTLTYPE_INT | CTLFLAG_RWTUN,
OID_AUTO, "debug", CTLFLAG_RWTUN,
&hm->debug_level, 0, "Verbosity level");
}
#endif
+2 -2
View File
@@ -1116,12 +1116,12 @@ iichid_attach(device_t dev)
"idle sampling rate in num/second");
SYSCTL_ADD_INT(device_get_sysctl_ctx(sc->dev),
SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)),
OID_AUTO, "sampling_rate_fast", CTLTYPE_INT | CTLFLAG_RWTUN,
OID_AUTO, "sampling_rate_fast", CTLFLAG_RWTUN,
&sc->sampling_rate_fast, 0,
"active sampling rate in num/second");
SYSCTL_ADD_INT(device_get_sysctl_ctx(sc->dev),
SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)),
OID_AUTO, "sampling_hysteresis", CTLTYPE_INT | CTLFLAG_RWTUN,
OID_AUTO, "sampling_hysteresis", CTLFLAG_RWTUN,
&sc->sampling_hysteresis, 0,
"number of missing samples before enabling of slow mode");
hid_add_dynamic_quirk(&sc->hw, HQ_IICHID_SAMPLING);