[PATCH] NFC: port100: Introduce the use of function put_unaligned_le16

2014-12-24 Thread Vaishali Thakkar
This patch introduces the use of function put_unaligned_le16. This is done using Coccinelle and semantic patch used is as follows: @a@ typedef u16, __le16; {u16,__le16} e16; identifier tmp; expression ptr; expression y,e; type T; @@ - tmp = cpu_to_le16(y); <+... when != tmp ( - memcpy(ptr, (T

Re: [PATCH] NFC: port100: Introduce the use of function put_unaligned_le16

2014-12-24 Thread Arend van Spriel
On 12/24/14 03:35, Vaishali Thakkar wrote: On Wed, Dec 24, 2014 at 12:54 AM, Arend van Spriel wrote: On 12/23/14 16:27, Vaishali Thakkar wrote: This patch introduces the use of function put_unaligned_le16. This is done using Coccinelle and semantic patch used is as follows: @a@ typedef u16,

Re: [PATCH] NFC: port100: Introduce the use of function put_unaligned_le16

2014-12-23 Thread Vaishali Thakkar
On Wed, Dec 24, 2014 at 12:54 AM, Arend van Spriel wrote: > On 12/23/14 16:27, Vaishali Thakkar wrote: >> >> This patch introduces the use of function put_unaligned_le16. >> >> This is done using Coccinelle and semantic patch used is as follows: >> >> @a@ >> typedef u16, __le16; >> {u16,__le16} e1

Re: [PATCH] NFC: port100: Introduce the use of function put_unaligned_le16

2014-12-23 Thread Arend van Spriel
On 12/23/14 16:27, Vaishali Thakkar wrote: This patch introduces the use of function put_unaligned_le16. This is done using Coccinelle and semantic patch used is as follows: @a@ typedef u16, __le16; {u16,__le16} e16; identifier tmp; expression ptr; expression y,e; type T; @@ - tmp = cpu_to_le1

[PATCH] NFC: port100: Introduce the use of function put_unaligned_le16

2014-12-23 Thread Vaishali Thakkar
This patch introduces the use of function put_unaligned_le16. This is done using Coccinelle and semantic patch used is as follows: @a@ typedef u16, __le16; {u16,__le16} e16; identifier tmp; expression ptr; expression y,e; type T; @@ - tmp = cpu_to_le16(y); <+... when != tmp ( - memcpy(ptr, (T