hid-input.c && vendor defined usage pages
Perhaps this is a naive question, but why does hidinput_configure_usage() in hid-input.c configure vendor defined usage pages? In actuality, it seems like it's mainly handling some HP specific usage pages. Why aren't those in some hid-hp.c file that's selected by a kernel config?
Curiously,
--
Aseda Aboagye
Hi Aseda,
Quoted 4 lines · Aseda Aboagye
Perhaps this is a naive question, but why does
hidinput_configure_usage()inhid-input.cconfigure vendor defined usage pages? In actuality, it seems like it's mainly handling some HP specific usage pages. Why aren't those in somehid-hp.cfile that's selected by a kernel config?
It is simply a historic artefact. These usages were mapped way before we had HID sub-drivers and accompanying infrastructure.
Thanks.
Signature · 1 line
Dmitry
Quoted 10 lines · Dmitry Torokhov
Hi Aseda,
Quoted 4 lines · Aseda Aboagye
Perhaps this is a naive question, but why does
hidinput_configure_usage()inhid-input.cconfigure vendor defined usage pages? In actuality, it seems like it's mainly handling some HP specific usage pages. Why aren't those in somehid-hp.cfile that's selected by a kernel config?It is simply a historic artefact. These usages were mapped way before we had HID sub-drivers and accompanying infrastructure.
Do you reckon that we're stuck with this behaviour now since migrating them out, will likely break users who don't have the appropriate sub-drivers selected in their kernel config?
Thanks,
Signature · 1 line
Aseda Aboagye
Quoted 9 lines · Aseda Aboagye
Quoted 8 lines · Dmitry Torokhov
Hi Aseda,
Quoted 4 lines · Aseda Aboagye
Perhaps this is a naive question, but why does
hidinput_configure_usage()inhid-input.cconfigure vendor defined usage pages? In actuality, it seems like it's mainly handling some HP specific usage pages. Why aren't those in somehid-hp.cfile that's selected by a kernel config?
Quoted 6 lines
Quoted 2 lines
It is simply a historic artefact. These usages were mapped way before we had HID sub-drivers and accompanying infrastructure.
Do you reckon that we're stuck with this behaviour now since migrating them out, will likely break users who don't have the appropriate sub-drivers selected in their kernel config?
We typically do not commit to keeping forward or backward compatibility for the kernel config options, it is distribution's task to configure the kernel properly, so I think it can be changed if desired.
Thanks.
Signature · 1 line
Dmitry