mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 12:25:40 -05:00
media: exynos4-is: fimc-is: Fully open-code compatible for grepping
It is very useful to find driver implementing compatibles with `git grep compatible`, so driver should not use defines for that string, even if this means string will be effectively duplicated. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
a495041945
commit
aa17c036a0
@@ -131,7 +131,7 @@ static const struct dev_pm_ops fimc_is_i2c_pm_ops = {
|
||||
};
|
||||
|
||||
static const struct of_device_id fimc_is_i2c_of_match[] = {
|
||||
{ .compatible = FIMC_IS_I2C_COMPATIBLE },
|
||||
{ .compatible = "samsung,exynos4212-i2c-isp" },
|
||||
{ },
|
||||
};
|
||||
|
||||
|
||||
@@ -6,7 +6,5 @@
|
||||
* Sylwester Nawrocki <s.nawrocki@samsung.com>
|
||||
*/
|
||||
|
||||
#define FIMC_IS_I2C_COMPATIBLE "samsung,exynos4212-i2c-isp"
|
||||
|
||||
int fimc_is_register_i2c_driver(void);
|
||||
void fimc_is_unregister_i2c_driver(void);
|
||||
|
||||
@@ -207,7 +207,7 @@ static int fimc_is_register_subdevs(struct fimc_is *is)
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
for_each_compatible_node(i2c_bus, NULL, FIMC_IS_I2C_COMPATIBLE) {
|
||||
for_each_compatible_node(i2c_bus, NULL, "samsung,exynos4212-i2c-isp") {
|
||||
for_each_available_child_of_node(i2c_bus, child) {
|
||||
ret = fimc_is_parse_sensor_config(is, index, child);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user