diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-08-05 13:01:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-05 14:33:49 -0700 |
commit | 9bd6ceb666e76b9a3caefa158827a571ead55b6a (patch) | |
tree | 8971ea7aae23a1d4be71199e6ec70b9f9f6b6eae /drivers/video/aty/radeon_i2c.c | |
parent | c213ddf330e29f9d141705444dc45683adbb99b0 (diff) | |
download | blackbird-op-linux-9bd6ceb666e76b9a3caefa158827a571ead55b6a.tar.gz blackbird-op-linux-9bd6ceb666e76b9a3caefa158827a571ead55b6a.zip |
radeonfb: give i2c buses nicer names
The name of the i2c buses shows in the output of "i2cdetect -l", so
it's important to give informative names.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/aty/radeon_i2c.c')
-rw-r--r-- | drivers/video/aty/radeon_i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/aty/radeon_i2c.c b/drivers/video/aty/radeon_i2c.c index f9e7c29ad9bf..8c8fa35f1b7c 100644 --- a/drivers/video/aty/radeon_i2c.c +++ b/drivers/video/aty/radeon_i2c.c @@ -69,7 +69,8 @@ static int radeon_setup_i2c_bus(struct radeon_i2c_chan *chan, const char *name) { int rc; - strcpy(chan->adapter.name, name); + snprintf(chan->adapter.name, sizeof(chan->adapter.name), + "radeonfb %s", name); chan->adapter.owner = THIS_MODULE; chan->adapter.id = I2C_HW_B_RADEON; chan->adapter.algo_data = &chan->algo; |