Re: [PATCH] hid: usbhid: usbkbd: fix checkpatch.pl issues
From: Dmitry Torokhov
Date: Wed Mar 01 2017 - 15:47:11 EST
On Wed, Mar 01, 2017 at 09:59:31PM +0200, Avraham Shukron wrote:
> >
> > This kind of change is definitely not helpful. The original table was
> > Nx16, you converted it to Nx14. Why do you think original table used 16
> > columns?
> >
> > Regardless, it's a very old driver, just let it be.
> >
> > Thanks.
> >
>
> I can make it Nx8 :)
Or you can leave it as is.
>
> Seriously now - I don't understand what is so wrong with checkpatch fixes?
Checkpatch is a tool to make sure new code follows standard conversions,
not reshuffling old working code.
> I'm a new to kernel development, and the natural place to start is to do some
> coding style fixes.
> I thought fixing a driver that I actually use daily will be more satisfying.
You are not using this driver daily, pretty much nobody does. What you
are using is usbhid + hid-input + probably some hardware-specific hid
driver that twiddles the behavior of your keyboard.
> Why driver being old is a good reason to ignore the coding style conventions?
Since there is no active development nor use it is easy to introduce
bugs that won't be caught until much later. Checkpatch fixes are usually
welcome when there are additional fixes to the same driver.
Thanks.
--
Dmitry