[RFC 6/6] Bluetooth: hidp: Stop using deprecated BTN_EXTRA, _SIDE defines

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

 



Because the name of the BTN_EXTRA and BTN_SIDE defines was a mismatch with
how their values were actually being used, they have been deprecated.

This commit moves the bluetooth-hidp code over to the new defines with the
_same_ value.

This commit does not cause any functional changes, after this userspace
will see the exact same input_event codes as before.

Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
---
 net/bluetooth/hidp/core.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index a442e21f3894..f1905930ceea 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -211,8 +211,8 @@ static void hidp_input_report(struct hidp_session *session, struct sk_buff *skb)
 		input_report_key(dev, BTN_LEFT,   sdata[0] & 0x01);
 		input_report_key(dev, BTN_RIGHT,  sdata[0] & 0x02);
 		input_report_key(dev, BTN_MIDDLE, sdata[0] & 0x04);
-		input_report_key(dev, BTN_SIDE,   sdata[0] & 0x08);
-		input_report_key(dev, BTN_EXTRA,  sdata[0] & 0x10);
+		input_report_key(dev, BTN_BACKWRD,   sdata[0] & 0x08);
+		input_report_key(dev, BTN_FORWRD,  sdata[0] & 0x10);
 
 		input_report_rel(dev, REL_X, sdata[1]);
 		input_report_rel(dev, REL_Y, sdata[2]);
@@ -690,8 +690,8 @@ static int hidp_setup_input(struct hidp_session *session,
 		input->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_LEFT) |
 			BIT_MASK(BTN_RIGHT) | BIT_MASK(BTN_MIDDLE);
 		input->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y);
-		input->keybit[BIT_WORD(BTN_MOUSE)] |= BIT_MASK(BTN_SIDE) |
-			BIT_MASK(BTN_EXTRA);
+		input->keybit[BIT_WORD(BTN_MOUSE)] |= BIT_MASK(BTN_BACKWRD) |
+			BIT_MASK(BTN_FORWRD);
 		input->relbit[0] |= BIT_MASK(REL_WHEEL);
 	}
 
-- 
2.21.0




[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