#ifndef VLAN_H #define VLAN_H #include #include static inline uint16_t vlan_tci2prio(uint16_t tci) { return (tci & 0xe000) >> 13; } static inline uint16_t vlan_tci2cfi(uint16_t tci) { return (tci & 0x1000) >> 12; } static inline uint16_t vlan_tci2vid(uint16_t tci) { return tci & 0x0fff; } #endif drivers/hid?h=master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEllen Wang <ellen@cumulusnetworks.com>2015-07-09 22:04:31 -0700
committerJiri Kosina <jkosina@suse.com>2015-07-14 22:42:42 +0200
commit29e2d6d1f6f61ba2b5cc9d9867e01d8c31a6c4f7 (patch)
tree0aa7c167247635f584d3ade01de56a347b6fb051 /drivers/hid
parent6d00d153f00097d259f86304e11858a50a1b8ad1 (diff)
HID: cp2112: fix byte order in SMBUS operations
Change all occurrences of be16 to le16 in cp2112_xfer(), because SMBUS words are little endian, not big endian. Signed-off-by: Ellen Wang <ellen@cumulusnetworks.com> Cc: stable@vger.kernel.org Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/hid')