Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1497473
| From | Heiner Kallweit <hkallweit1@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] hid-led.c: remove unneccessary underscores |
| Date | 2016-10-07 20:50 +0200 |
| Message-ID | <spInw-4rh-17@gated-at.bofh.it> (permalink) |
| References | <so6DD-22l-5@gated-at.bofh.it> <so82O-39b-11@gated-at.bofh.it> <spGc1-32z-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Am 07.10.2016 um 18:25 schrieb Benjamin Tissoires:
> On Oct 03 2016 or thereabouts, Pavel Machek wrote:
>> On Mon 2016-10-03 10:16:26, Pavel Machek wrote:
>>>
>>> u8 (and friends) can be used directly in kernel sources (not kernel
>>> headers).
>>>
>>> Signed-off-by: Pavel Machek <pavel@ucw.cz>
>>
>> Zero day bot warned me that this is not quiet correct.
>>
>> This would be needed on top. Is there interest in fixed patch?
>
> Having both __ and not __ in the same driver would be a little bit
> weird. So I'd say we just continue with the existing code. Thanks for
> the submission BTW!
>
Reason for me to choose the __ types here was that hid_hw_raw_request
defines the buffer argument as "__u8 *buf" and I wanted to be in line
with that.
> Cheers,
> Benjamin
>
>>
>> diff --git a/drivers/hid/hid-led.c b/drivers/hid/hid-led.c
>> index cd208ca..be659ca 100644
>> --- a/drivers/hid/hid-led.c
>> +++ b/drivers/hid/hid-led.c
>> @@ -57,8 +57,8 @@ union delcom_packet {
>> u8 cmd;
>> } rx;
>> struct {
>> - le16 family_code;
>> - le16 security_code;
>> + __le16 family_code;
>> + __le16 security_code;
>> u8 fw_version;
>> } fw;
>> };
>>
>>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-leds" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] hid-led.c: remove unneccessary underscores Pavel Machek <pavel@ucw.cz> - 2016-10-03 10:20 +0200
Re: [PATCH] hid-led.c: remove unneccessary underscores Pavel Machek <pavel@ucw.cz> - 2016-10-03 11:50 +0200
Re: [PATCH] hid-led.c: remove unneccessary underscores Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2016-10-07 18:30 +0200
Re: [PATCH] hid-led.c: remove unneccessary underscores Heiner Kallweit <hkallweit1@gmail.com> - 2016-10-07 20:50 +0200
csiph-web