From: Andrei Emeltchenko Date: Mon, 12 Mar 2012 10:13:10 +0000 (+0200) Subject: Bluetooth: trivial: Fix endian conversion mode X-Git-Tag: v3.5-rc1~35^2~3^2~18^2^2~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fd21a88e311c03241f323f64aef643fcd5f149d;p=platform%2Fupstream%2Fkernel-adaptation-pc.git Bluetooth: trivial: Fix endian conversion mode In L2CAP we use le16 format so change direction of conversion from le16_to_cpu to cpu_to_le16. Signed-off-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index aaab655..4b66cad 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -2379,9 +2379,9 @@ done: chan->remote_mps = size; rfc.retrans_timeout = - le16_to_cpu(L2CAP_DEFAULT_RETRANS_TO); + __constant_cpu_to_le16(L2CAP_DEFAULT_RETRANS_TO); rfc.monitor_timeout = - le16_to_cpu(L2CAP_DEFAULT_MONITOR_TO); + __constant_cpu_to_le16(L2CAP_DEFAULT_MONITOR_TO); set_bit(CONF_MODE_DONE, &chan->conf_state);