staging: greybus: Fixed alignment issue in hid.c
Subsystems (3)
PATCH 1/2 staging: greybus: Fixed alignment issue in hid.c
This change fixes a checkpatch CHECK style issue for "Alignment should match open parenthesis".
--- drivers/staging/greybus/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/greybus/hid.c +2 -2
@@ -221,8 +221,8 @@ static void gb_hid_init_reports(struct gb_hid *ghid) }static int __gb_hid_get_raw_report (struct hid_device *hid, -unsigned char report_number,__u8 *buf,size_t count, -unsigned char report_type) +unsigned char report_number,__u8 *buf,size_t count, +unsigned char report_type) {struct gb_hid *ghid = hid->driver_data;int ret;
--
2.25.1
PATCH 2/2 staging: greybus: Fixed a misspelling in hid.c
Fixed the spelling of 'transfered' to 'transferred'.
--- drivers/staging/greybus/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/hid.c +1 -1
@@ -254,7 +254,7 @@ static int __gb_hid_output_raw_report(struct hid_device *hid, __u8 *buf, ret =gb_hid_set_report (ghid, report_type, report_id, buf, len);if (report_id && ret >=0 ) - ret++;/* add report_id to the number of transfered bytes */ + ret++;/* add report_id to the number of transferrid bytes */ return 0 ; }
--
2.25.1
Johan Hovold
maintainerRe: [PATCH 2/2] staging: greybus: Fixed a misspelling in hid.c
Quoted 12 lines · Pritthijit Nath
Fixed the spelling of 'transfered' to 'transferred'.
Signed-off-by Pritthijit Nath <[email protected]>--- drivers/staging/greybus/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/greybus/hid.c +0
-0
drivers/staging/greybus/hid.c static int __gb_hid_output_raw_report(struct hid_device *hid, __u8 *buf, · line 257
Quoted 5 lines
drivers/staging/greybus/hid.c +1
-1@@ -254,7 +254,7 @@ static int __gb_hid_output_raw_report(struct hid_device *hid, __u8 *buf, ret =gb_hid_set_report (ghid, report_type, report_id, buf, len);if (report_id && ret >=0 ) - ret++;/* add report_id to the number of transfered bytes */ + ret++;/* add report_id to the number of transferrid bytes */
You now misspelled transferred in a different way.
drivers/staging/greybus/hid.c static int __gb_hid_output_raw_report(struct hid_device *hid, __u8 *buf, · line 260
Quoted 3 lines
drivers/staging/greybus/hid.c +0
-0return 0 ; }
Johan
Greg KH
maintainerRe: [PATCH 2/2] staging: greybus: Fixed a misspelling in hid.c
Quoted 14 lines · Johan Hovold
Quoted 13 lines · Pritthijit Nath
Fixed the spelling of 'transfered' to 'transferred'.
Signed-off-by Pritthijit Nath <[email protected]>--- drivers/staging/greybus/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/greybus/hid.c +0
-0@@ -254,7 +254,7 @@ static int __gb_hid_output_raw_report(struct hid_device *hid, __u8 *buf,
Quoted 6 lines
drivers/staging/greybus/hid.c static int __gb_hid_output_raw_report(struct hid_device *hid, __u8 *buf, · line 257
Quoted 4 lines
drivers/staging/greybus/hid.c +1
-1ret =gb_hid_set_report (ghid, report_type, report_id, buf, len);if (report_id && ret >=0 ) - ret++;/* add report_id to the number of transfered bytes */ + ret++;/* add report_id to the number of transferrid bytes */ You now misspelled transferred in a different way.
Oops, will go revert this, I need more coffee...
Re: [PATCH 2/2] staging: greybus: Fixed a misspelling in hid.c
Quoted 15 lines · Greg KH
Quoted 14 lines · Johan Hovold
Quoted 13 lines · Pritthijit Nath
Fixed the spelling of 'transfered' to 'transferred'.
Signed-off-by Pritthijit Nath <[email protected]>--- drivers/staging/greybus/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/greybus/hid.c +0
-0@@ -254,7 +254,7 @@ static int __gb_hid_output_raw_report(struct hid_device *hid, __u8 *buf,
Quoted 8 lines
Quoted 6 lines
drivers/staging/greybus/hid.c static int __gb_hid_output_raw_report(struct hid_device *hid, __u8 *buf, · line 257
Quoted 4 lines
drivers/staging/greybus/hid.c +1
-1ret =gb_hid_set_report (ghid, report_type, report_id, buf, len);if (report_id && ret >=0 ) - ret++;/* add report_id to the number of transfered bytes */ + ret++;/* add report_id to the number of transferrid bytes */ You now misspelled transferred in a different way.
Oops, will go revert this, I need more coffee...
Yeah, its Friday.. You need a break too :)
Signature · 1 line
viresh
Quoted 13 lines · Pritthijit Nath
This change fixes a checkpatch CHECK style issue for "Alignment should match open parenthesis".
Signed-off-by Pritthijit Nath <[email protected]>--- drivers/staging/greybus/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/greybus/hid.c +0
-0
drivers/staging/greybus/hid.c static void gb_hid_init_reports(struct gb_hid *ghid) · line 228
Quoted 10 lines
drivers/staging/greybus/hid.c +2
-2@@ -221,8 +221,8 @@ static void gb_hid_init_reports(struct gb_hid *ghid) }static int __gb_hid_get_raw_report (struct hid_device *hid, -unsigned char report_number,__u8 *buf,size_t count, -unsigned char report_type) +unsigned char report_number,__u8 *buf,size_t count, +unsigned char report_type) {struct gb_hid *ghid = hid->driver_data;int ret;
I can't even count the number of attempts we have seen in previous years to make checkpatch --strict happy for greybus.
I say we make this change once and for all across greybus, so we don't have to review or NAK someone afterwards.
Should I send a patch for this ?
Signature · 1 line
viresh
Greg KH
maintainerQuoted 28 lines · Viresh Kumar
Quoted 13 lines · Pritthijit Nath
This change fixes a checkpatch CHECK style issue for "Alignment should match open parenthesis".
Signed-off-by Pritthijit Nath <[email protected]>--- drivers/staging/greybus/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/greybus/hid.c +0
-0drivers/staging/greybus/hid.c static void gb_hid_init_reports(struct gb_hid *ghid) · line 228
Quoted 10 lines
drivers/staging/greybus/hid.c +2
-2@@ -221,8 +221,8 @@ static void gb_hid_init_reports(struct gb_hid *ghid) }static int __gb_hid_get_raw_report (struct hid_device *hid, -unsigned char report_number,__u8 *buf,size_t count, -unsigned char report_type) +unsigned char report_number,__u8 *buf,size_t count, +unsigned char report_type) {struct gb_hid *ghid = hid->driver_data;int ret;I can't even count the number of attempts we have seen in previous years to make checkpatch --strict happy for greybus.
Quoted 4 lines
I say we make this change once and for all across greybus, so we don't have to review or NAK someone afterwards.
Should I send a patch for this ?
Sure, but note that over time, checkpatch adds new things so there will always be something to change in here, until we move it out of the drivers/staging/ area :)
I need to go fix up the greybus vibrator patch which was my first attempt at getting back into that effort...
thanks,
greg k-h
Quoted 29 lines · Greg KH
Quoted 28 lines · Viresh Kumar
Quoted 13 lines · Pritthijit Nath
This change fixes a checkpatch CHECK style issue for "Alignment should match open parenthesis".
Signed-off-by Pritthijit Nath <[email protected]>--- drivers/staging/greybus/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/greybus/hid.c +0
-0drivers/staging/greybus/hid.c static void gb_hid_init_reports(struct gb_hid *ghid) · line 228
Quoted 10 lines
drivers/staging/greybus/hid.c +2
-2@@ -221,8 +221,8 @@ static void gb_hid_init_reports(struct gb_hid *ghid) }static int __gb_hid_get_raw_report (struct hid_device *hid, -unsigned char report_number,__u8 *buf,size_t count, -unsigned char report_type) +unsigned char report_number,__u8 *buf,size_t count, +unsigned char report_type) {struct gb_hid *ghid = hid->driver_data;int ret;I can't even count the number of attempts we have seen in previous years to make checkpatch --strict happy for greybus.
Quoted 8 lines
Quoted 4 lines
I say we make this change once and for all across greybus, so we don't have to review or NAK someone afterwards.
Should I send a patch for this ?
Sure, but note that over time, checkpatch adds new things so there will always be something to change in here, until we move it out of the
drivers/staging/area :)
Right, though I wasn't worried about other checkpatch warning but specially the "alignment - parenthesis" one. Everyone (specially newbies) want to fix that everywhere :)
Signature · 1 line
viresh
Greg KH
maintainerQuoted 35 lines · Viresh Kumar
Quoted 34 lines · Greg KH
Quoted 32 lines · Viresh Kumar
Quoted 13 lines · Pritthijit Nath
This change fixes a checkpatch CHECK style issue for "Alignment should match open parenthesis".
Signed-off-by Pritthijit Nath <[email protected]>--- drivers/staging/greybus/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/greybus/hid.c +0
-0drivers/staging/greybus/hid.c static void gb_hid_init_reports(struct gb_hid *ghid) · line 228
Quoted 10 lines
drivers/staging/greybus/hid.c +2
-2@@ -221,8 +221,8 @@ static void gb_hid_init_reports(struct gb_hid *ghid) }static int __gb_hid_get_raw_report (struct hid_device *hid, -unsigned char report_number,__u8 *buf,size_t count, -unsigned char report_type) +unsigned char report_number,__u8 *buf,size_t count, +unsigned char report_type) {struct gb_hid *ghid = hid->driver_data;int ret;I can't even count the number of attempts we have seen in previous years to make checkpatch --strict happy for greybus.
I say we make this change once and for all across greybus, so we don't have to review or NAK someone afterwards.
Should I send a patch for this ?
Quoted 7 lines
Quoted 3 lines
Sure, but note that over time, checkpatch adds new things so there will always be something to change in here, until we move it out of the
drivers/staging/area :)Right, though I wasn't worried about other checkpatch warning but specially the "alignment - parenthesis" one. Everyone (specially newbies) want to fix that everywhere :)
Sure, fix it up "right" if you want to, I'll take coding style fixes from anyone :)
Johan Hovold
maintainerQuoted 35 lines · Viresh Kumar
Quoted 34 lines · Greg KH
Quoted 32 lines · Viresh Kumar
Quoted 13 lines · Pritthijit Nath
This change fixes a checkpatch CHECK style issue for "Alignment should match open parenthesis".
Signed-off-by Pritthijit Nath <[email protected]>--- drivers/staging/greybus/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/greybus/hid.c +0
-0drivers/staging/greybus/hid.c static void gb_hid_init_reports(struct gb_hid *ghid) · line 228
Quoted 10 lines
drivers/staging/greybus/hid.c +2
-2@@ -221,8 +221,8 @@ static void gb_hid_init_reports(struct gb_hid *ghid) }static int __gb_hid_get_raw_report (struct hid_device *hid, -unsigned char report_number,__u8 *buf,size_t count, -unsigned char report_type) +unsigned char report_number,__u8 *buf,size_t count, +unsigned char report_type) {struct gb_hid *ghid = hid->driver_data;int ret;I can't even count the number of attempts we have seen in previous years to make checkpatch --strict happy for greybus.
I say we make this change once and for all across greybus, so we don't have to review or NAK someone afterwards.
Should I send a patch for this ?
Quoted 7 lines
Quoted 3 lines
Sure, but note that over time, checkpatch adds new things so there will always be something to change in here, until we move it out of the
drivers/staging/area :)Right, though I wasn't worried about other checkpatch warning but specially the "alignment - parenthesis" one. Everyone (specially newbies) want to fix that everywhere :)
But what will the checkpatch crew then work on? Better staging than the rest of the kernel.
Perhaps just let them keep at it until we move the rest out (the price we pay for taking this through staging apparently).
But there can't be that many instances left of this alignment "violation" in staging/greybus (~4 it seems) if you want to get it over with.
Johan
Quoted 1 line · Johan Hovold
But what will the checkpatch crew then work on?
Lol..
Quoted 1 line
Better staging than the rest of the kernel.
[ /me wondering on who stops them from sending patches for rest of the kernel ? ]
Signature · 1 line
viresh
Johan Hovold
maintainerQuoted 9 lines · Viresh Kumar
Quoted 1 line · Johan Hovold
But what will the checkpatch crew then work on?
Lol..
Quoted 1 line
Better staging than the rest of the kernel.
[ /me wondering on who stops them from sending patches for rest of the kernel ? ]
Ideally maintainers should at least push back when they do.
Johan