[media] solo6x10: Fix eeprom_* functions buffer's type
authorIsmael Luceno <ismael@iodev.co.uk>
Wed, 24 Dec 2014 11:36:00 +0000 (08:36 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 27 Jan 2015 12:02:42 +0000 (10:02 -0200)
s/unsigned short/u16/

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/solo6x10/solo6x10-core.c

index 8cbe6b49f4c238de365b0a231eef8f4dff2425ff..570d119ea18b6667cf906a1023ba2240e4c63e11 100644 (file)
@@ -182,7 +182,7 @@ static ssize_t eeprom_store(struct device *dev, struct device_attribute *attr,
 {
        struct solo_dev *solo_dev =
                container_of(dev, struct solo_dev, dev);
-       unsigned short *p = (unsigned short *)buf;
+       u16 *p = (u16 *)buf;
        int i;
 
        if (count & 0x1)
@@ -212,7 +212,7 @@ static ssize_t eeprom_show(struct device *dev, struct device_attribute *attr,
 {
        struct solo_dev *solo_dev =
                container_of(dev, struct solo_dev, dev);
-       unsigned short *p = (unsigned short *)buf;
+       u16 *p = (u16 *)buf;
        int count = (full_eeprom ? 128 : 64);
        int i;