]> git.baikalelectronics.ru Git - kernel.git/commit
media: rockchip: rkisp1: use device name for debugfs subdir name
authorMikhail Rudenko <mike.rudenko@gmail.com>
Sun, 10 Oct 2021 17:54:57 +0000 (19:54 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Dec 2021 14:09:14 +0000 (15:09 +0100)
commitf6838345cc13fc99048568d4370a54df8f0d001f
treeb4fabdd2a498b77bf759d4ae5246200d3a82e273
parent82ad361b0bd653f191e21fb4d795a8ff08476d57
media: rockchip: rkisp1: use device name for debugfs subdir name

While testing Rockchip RK3399 with both ISPs enabled, a dmesg error
was observed:
```
[   15.559141] debugfs: Directory 'rkisp1' with parent '/' already present!
```

Fix it by using the device name for the debugfs subdirectory name
instead of the driver name, thus preventing name collision.

Link: https://lore.kernel.org/linux-media/20211010175457.438627-1-mike.rudenko@gmail.com
Signed-off-by: Mikhail Rudenko <mike.rudenko@gmail.com>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c