Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1716724
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/8] constify nfc i2c_device_id |
| Date | 2017-08-21 19:10 +0200 |
| Message-ID | <ugYn7-79B-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
i2c_device_id are not supposed to change at runtime. All functions working with i2c_device_id provided by <linux/i2c.h> work with const i2c_device_id. So mark the non-const structs as const. Arvind Yadav (8): [PATCH 1/8] nfc: microread: constify i2c_device_id [PATCH 2/8] nfc: nfcmrvl: constify i2c_device_id [PATCH 3/8] nfc: nxp-nci: constify i2c_device_id [PATCH 4/8] nfc: pn533: constify i2c_device_id [PATCH 5/8] nfc: pn544: constify i2c_device_id [PATCH 6/8] nfc: s3fwrn5: constify i2c_device_id [PATCH 7/8] nfc: st-nci: constify i2c_device_id [PATCH 8/8] nfc: st21nfca: constify i2c_device_id drivers/nfc/microread/i2c.c | 2 +- drivers/nfc/nfcmrvl/i2c.c | 2 +- drivers/nfc/nxp-nci/i2c.c | 2 +- drivers/nfc/pn533/i2c.c | 2 +- drivers/nfc/pn544/i2c.c | 2 +- drivers/nfc/s3fwrn5/i2c.c | 2 +- drivers/nfc/st-nci/i2c.c | 2 +- drivers/nfc/st21nfca/i2c.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) -- 2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/8] constify nfc i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-21 19:10 +0200 [PATCH 8/8] nfc: st21nfca: constify i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-21 19:10 +0200
csiph-web