]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: ucsi: Fix the notification bit offsets
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 8 Jan 2020 13:13:46 +0000 (16:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2020 16:34:16 +0000 (17:34 +0100)
commitc29471f00b914a74d887b42d463ecc202b044bc9
treec1493d8b5745276f2d0e5b1600b05dd29cb496bd
parent4e780932af4890fa652ec7063bede45c900f888b
usb: typec: ucsi: Fix the notification bit offsets

The bit offsets for the Set Notification Enable command were
not considering the reserved bits in the middle.

Fixes: e315e12c914b ("usb: typec: ucsi: Remove struct ucsi_control")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200108131347.43217-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.h