diff mbox series

[-next] i2c: qcom-geni: change i2c_master_hub to static

Message ID 20221228093403.3165722-1-yangyingliang@huawei.com (mailing list archive)
State Not Applicable
Headers show
Series [-next] i2c: qcom-geni: change i2c_master_hub to static | expand

Commit Message

Yang Yingliang Dec. 28, 2022, 9:34 a.m. UTC
i2c_master_hub is only used in i2c-qcom-geni.c now,
change it to static.

Fixes: cacd9643eca7 ("i2c: qcom-geni: add support for I2C Master Hub variant")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/i2c/busses/i2c-qcom-geni.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bjorn Andersson Dec. 29, 2022, 3:45 a.m. UTC | #1
On Wed, Dec 28, 2022 at 05:34:02PM +0800, Yang Yingliang wrote:
> i2c_master_hub is only used in i2c-qcom-geni.c now,
> change it to static.
> 
> Fixes: cacd9643eca7 ("i2c: qcom-geni: add support for I2C Master Hub variant")
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>

Reviewed-by: Bjorn Andersson <andersson@kernel.org>

Regards,
Bjorn

> ---
>  drivers/i2c/busses/i2c-qcom-geni.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c
> index f292e4dab98f..fd22fcb07da2 100644
> --- a/drivers/i2c/busses/i2c-qcom-geni.c
> +++ b/drivers/i2c/busses/i2c-qcom-geni.c
> @@ -1029,7 +1029,7 @@ static const struct dev_pm_ops geni_i2c_pm_ops = {
>  									NULL)
>  };
>  
> -const struct geni_i2c_desc i2c_master_hub = {
> +static const struct geni_i2c_desc i2c_master_hub = {
>  	.has_core_clk = true,
>  	.icc_ddr = NULL,
>  	.no_dma_support = true,
> -- 
> 2.25.1
>
Wolfram Sang Jan. 9, 2023, 3:21 p.m. UTC | #2
On Wed, Dec 28, 2022 at 05:34:02PM +0800, Yang Yingliang wrote:
> i2c_master_hub is only used in i2c-qcom-geni.c now,
> change it to static.
> 
> Fixes: cacd9643eca7 ("i2c: qcom-geni: add support for I2C Master Hub variant")
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>

Applied to for-next, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c
index f292e4dab98f..fd22fcb07da2 100644
--- a/drivers/i2c/busses/i2c-qcom-geni.c
+++ b/drivers/i2c/busses/i2c-qcom-geni.c
@@ -1029,7 +1029,7 @@  static const struct dev_pm_ops geni_i2c_pm_ops = {
 									NULL)
 };
 
-const struct geni_i2c_desc i2c_master_hub = {
+static const struct geni_i2c_desc i2c_master_hub = {
 	.has_core_clk = true,
 	.icc_ddr = NULL,
 	.no_dma_support = true,