aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/usb/em28xx/em28xx-i2c.c
diff options
context:
space:
mode:
authorBoris Brezillon2017-01-07 15:48:25 +0100
committerBoris Brezillon2017-03-08 23:21:18 +0100
commitbcc678c2d7a0e0af14cb3d858ebd367be378c172 (patch)
treebf65c4f754e0cfc612b300722571e62bb1cda958 /drivers/media/usb/em28xx/em28xx-i2c.c
parentf16bd7ca045729e1104a9353dfd792ea98931b80 (diff)
mtd: nand: Do not expose the NAND manufacturer table directly
There is no reason to expose the NAND manufacturer table. Provide an helper function to find manufacturers by their id. We also turn the nand_manufacturers table into a const array, since its members are not modified after the initial assignment. Finally, we remove the sentinel manufacturer entry from the manufacturers table (we already have the array size information given by ARRAY_SIZE()), and add the nand_manufacturer_name() helper to handle the "Unknown" case properly. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-i2c.c')
0 files changed, 0 insertions, 0 deletions