X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Finput%2Ftouchscreen%2Fads7846.c;fp=drivers%2Finput%2Ftouchscreen%2Fads7846.c;h=da201b8e37dc90aac807a7158278e82a81c59772;hb=879f99ef2c4c05d9a7f0a67a05f1415663119825;hp=8c4fdd1f6faa48297c30d2b8bde5ea15e2663e08;hpb=70a26071f8552a0f193cf442f424decfe0f2e569;p=pandora-kernel.git diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 8c4fdd1f6faa..da201b8e37dc 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -425,7 +425,7 @@ static int ads7845_read12_ser(struct device *dev, unsigned command) name ## _show(struct device *dev, struct device_attribute *attr, char *buf) \ { \ struct ads7846 *ts = dev_get_drvdata(dev); \ - ssize_t v = ads7846_read12_ser(dev, \ + ssize_t v = ads7846_read12_ser(&ts->spi->dev, \ READ_12BIT_SER(var)); \ if (v < 0) \ return v; \