diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2014-05-12 07:30:55 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-06-17 11:04:45 -0400 |
commit | f8d36b8960019da9ba46721bd541af61d7497a00 (patch) | |
tree | 4e5063f043a7bd58206d0b7f59dffbd3d240fc5a /drivers/media | |
parent | a4965c592e3323967170daa8fdde798b6f84e8ee (diff) |
[media] smiapp: I2C address is the last part of the subdev name
The I2C address of the sensor device was in the middle of the sub-device
name and not in the end as it should have been. The smiapp sub-device names
will change from e.g. "vs6555 1-0010 pixel array" to "vs6555 pixel array
1-0010".
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 06fb03291d59..446c82c58a62 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c | |||
@@ -2544,9 +2544,9 @@ static int smiapp_registered(struct v4l2_subdev *subdev) | |||
2544 | } | 2544 | } |
2545 | 2545 | ||
2546 | snprintf(this->sd.name, | 2546 | snprintf(this->sd.name, |
2547 | sizeof(this->sd.name), "%s %d-%4.4x %s", | 2547 | sizeof(this->sd.name), "%s %s %d-%4.4x", |
2548 | sensor->minfo.name, i2c_adapter_id(client->adapter), | 2548 | sensor->minfo.name, _this->name, |
2549 | client->addr, _this->name); | 2549 | i2c_adapter_id(client->adapter), client->addr); |
2550 | 2550 | ||
2551 | this->sink_fmt.width = | 2551 | this->sink_fmt.width = |
2552 | sensor->limits[SMIAPP_LIMIT_X_ADDR_MAX] + 1; | 2552 | sensor->limits[SMIAPP_LIMIT_X_ADDR_MAX] + 1; |