Re: [PATCH 1/1] HID: fix bus handling in scripts/mod/file2alias.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Feb 2009, jirislaby@xxxxxxxxx wrote:

> From: Jiri Slaby <jirislaby@xxxxxxxxx>
> 
> Fix endianness of bus member of hid_device_id in modpost.
> 
> Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>
> Reported-by: Nye Liu <nyet@xxxxxxx>
> Cc: Jiri Kosina <jkosina@xxxxxxx>
> ---
>  scripts/mod/file2alias.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
> index 82a1011..a334428 100644
> --- a/scripts/mod/file2alias.c
> +++ b/scripts/mod/file2alias.c
> @@ -210,6 +210,7 @@ static void do_usb_table(void *symval, unsigned long size,
>  static int do_hid_entry(const char *filename,
>  			     struct hid_device_id *id, char *alias)
>  {
> +	id->bus = TO_NATIVE(id->bus);
>  	id->vendor = TO_NATIVE(id->vendor);
>  	id->product = TO_NATIVE(id->product);

Good catch, applied, thanks.

-- 
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux