Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1366897
| From | Phil Reid <preid@electromag.com.au> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] gpio: pca953x: Use correct u16 value for register word write |
| Date | 2016-03-30 07:20 +0200 |
| Message-ID | <rigHU-Er-7@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <ri1px-6kK-31@gated-at.bofh.it> <ri2Yi-7C8-23@gated-at.bofh.it> <ri4Qq-sQ-13@gated-at.bofh.it> <rigye-Aq-3@gated-at.bofh.it> <rigye-Aq-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 30/03/2016 1:01 PM, Yong Li wrote: > Or another method is using the below to convert the u8 to u16: > cpu_to_le16(get_unaligned((u16 *) val)), compared with the > i2c_smbus_write_byte_data method, which one is better? > > G'day Yong, I'd go with the cpu_to_le16(get_unaligned((u16 *) val)) -- Regards Phil Reid
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] gpio: pca953x: Use correct u16 value for register word write Yong Li <sdliyong@gmail.com> - 2016-03-29 08:40 +0200
Re: [PATCH] gpio: pca953x: Use correct u16 value for register word write Phil Reid <preid@electromag.com.au> - 2016-03-29 14:10 +0200
Re: [PATCH] gpio: pca953x: Use correct u16 value for register word write Yong Li <sdliyong@gmail.com> - 2016-03-29 15:00 +0200
Re: [PATCH] gpio: pca953x: Use correct u16 value for register word write Alexander Stein <alexander.stein@systec-electronic.com> - 2016-03-29 16:40 +0200
Re: [PATCH] gpio: pca953x: Use correct u16 value for register word write Phil Reid <preid@electromag.com.au> - 2016-03-29 18:40 +0200
Re: [PATCH] gpio: pca953x: Use correct u16 value for register word write Yong Li <sdliyong@gmail.com> - 2016-03-30 04:50 +0200
Re: [PATCH] gpio: pca953x: Use correct u16 value for register word write Yong Li <sdliyong@gmail.com> - 2016-03-30 07:10 +0200
Re: [PATCH] gpio: pca953x: Use correct u16 value for register word write Phil Reid <preid@electromag.com.au> - 2016-03-30 07:20 +0200
csiph-web