summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorFrank Schaefer <fschaefer.oss@googlemail.com>2013-03-27 17:06:30 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-29 06:34:25 -0300
commitb3944c8f676de2e7ccd78151ae6a0518a9c44df6 (patch)
treedb08204b3139199d58439ba12f17e92056d6ca4e /drivers/media/usb
parent484fbbeb3eed224e11f016ee212f07e698a24f97 (diff)
downloadtalos-obmc-linux-b3944c8f676de2e7ccd78151ae6a0518a9c44df6.tar.gz
talos-obmc-linux-b3944c8f676de2e7ccd78151ae6a0518a9c44df6.zip
[media] em28xx: rename em28xx_hint_sensor() to em28xx_detect_sensor()
Now that the board hints and the sensor initialization/configuration have been separated, em28xx_detect_sensor() is the better name for this function. Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r--drivers/media/usb/em28xx/em28xx-cards.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c
index de15cdff5892..b745860794b3 100644
--- a/drivers/media/usb/em28xx/em28xx-cards.c
+++ b/drivers/media/usb/em28xx/em28xx-cards.c
@@ -2309,11 +2309,10 @@ static int em28xx_initialize_mt9m001(struct em28xx *dev)
return 0;
}
-/* HINT method: webcam I2C chips
- *
+/*
* This method works for webcams with Micron sensors
*/
-static int em28xx_hint_sensor(struct em28xx *dev)
+static int em28xx_detect_sensor(struct em28xx *dev)
{
int rc;
char *sensor_name;
@@ -2746,7 +2745,7 @@ static void em28xx_card_setup(struct em28xx *dev)
* If sensor is not found, then it isn't a webcam.
*/
if (dev->board.is_webcam) {
- if (em28xx_hint_sensor(dev) < 0)
+ if (em28xx_detect_sensor(dev) < 0)
dev->board.is_webcam = 0;
else
dev->progressive = 1;
OpenPOWER on IntegriCloud