Re: [PATCH] hid: hid-led: fix Delcom support on big endian systems

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

 



On Fri, 8 Jul 2016, Heiner Kallweit wrote:

> Properly handle this __le16 value on big endian systems.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx>
> ---
>  drivers/hid/hid-led.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hid/hid-led.c b/drivers/hid/hid-led.c
> index 4c43ef8..d8d55f3 100644
> --- a/drivers/hid/hid-led.c
> +++ b/drivers/hid/hid-led.c
> @@ -327,7 +327,7 @@ static int delcom_init(struct hidled_device *ldev)
>  	 * Several Delcom devices share the same USB VID/PID
>  	 * Check for family id 2 for Visual Signal Indicator
>  	 */
> -	return dp.fw.family_code == 2 ? 0 : -ENODEV;
> +	return le16_to_cpu(dp.fw.family_code) == 2 ? 0 : -ENODEV;
>  }

Applied to for-4.8/hid-led. 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