Bluetooth: Convert uses of __constant_<foo> to <foo>
The use of __constant_<foo> has been unnecessary for quite awhile now. Make these uses consistent with the rest of the kernel. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

parent
4340a124de
commit
dcf4adbfdc
@@ -676,20 +676,20 @@ static void sco_conn_defer_accept(struct hci_conn *conn, u16 setting)
|
||||
bacpy(&cp.bdaddr, &conn->dst);
|
||||
cp.pkt_type = cpu_to_le16(conn->pkt_type);
|
||||
|
||||
cp.tx_bandwidth = __constant_cpu_to_le32(0x00001f40);
|
||||
cp.rx_bandwidth = __constant_cpu_to_le32(0x00001f40);
|
||||
cp.tx_bandwidth = cpu_to_le32(0x00001f40);
|
||||
cp.rx_bandwidth = cpu_to_le32(0x00001f40);
|
||||
cp.content_format = cpu_to_le16(setting);
|
||||
|
||||
switch (setting & SCO_AIRMODE_MASK) {
|
||||
case SCO_AIRMODE_TRANSP:
|
||||
if (conn->pkt_type & ESCO_2EV3)
|
||||
cp.max_latency = __constant_cpu_to_le16(0x0008);
|
||||
cp.max_latency = cpu_to_le16(0x0008);
|
||||
else
|
||||
cp.max_latency = __constant_cpu_to_le16(0x000D);
|
||||
cp.max_latency = cpu_to_le16(0x000D);
|
||||
cp.retrans_effort = 0x02;
|
||||
break;
|
||||
case SCO_AIRMODE_CVSD:
|
||||
cp.max_latency = __constant_cpu_to_le16(0xffff);
|
||||
cp.max_latency = cpu_to_le16(0xffff);
|
||||
cp.retrans_effort = 0xff;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user