Skip to contentSkip to conversation

staging: hikey9xx: fix checkpatch error and warning

PATCH In review Atul Gopinathan 2 participants 2 messages Feb 9, 2021 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: hikey9xx: fix checkpatch error and warning

Fix the following types of checkpatch error and warning:

ERROR: code indent should use tabs where possible
WARNING: struct phy_ops should normally be const

---
 drivers/staging/hikey9xx/hi6421-spmi-pmic.c     | 2 +-
 drivers/staging/hikey9xx/hi6421v600-regulator.c | 2 +-
 drivers/staging/hikey9xx/phy-hi3670-usb3.c      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/hikey9xx/hi6421-spmi-pmic.c +1 -1
index 2301f4fcd48d..9c5e113e1a81 100644
@@ -177,7 +177,7 @@ static void hi6421_spmi_pmic_irq_init(struct hi6421_spmi_pmic *ddata)
 
 	for (i = 0; i < HISI_IRQ_ARRAY; i++)
 		regmap_write(ddata->regmap, SOC_PMIC_IRQ_MASK_0_ADDR + i,
-				        HISI_MASK);
+					HISI_MASK);
 
 	for (i = 0; i < HISI_IRQ_ARRAY; i++) {
 		regmap_read(ddata->regmap, SOC_PMIC_IRQ0_ADDR + i, &pending);
drivers/staging/hikey9xx/hi6421v600-regulator.c +1 -1
index c801bb840962..f6a14e9c3cbf 100644
@@ -106,7 +106,7 @@ static int hi6421_spmi_regulator_enable(struct regulator_dev *rdev)
 
 	ret = regmap_update_bits(pmic->regmap, rdev->desc->enable_reg,
 				 rdev->desc->enable_mask,
-			         rdev->desc->enable_mask);
+				 rdev->desc->enable_mask);
 
 	/* Avoid powering up multiple devices at the same time */
 	usleep_range(rdev->desc->off_on_delay, rdev->desc->off_on_delay + 60);
drivers/staging/hikey9xx/phy-hi3670-usb3.c +1 -1
index 8918f3665f8e..e7e579ce0302 100644
@@ -585,7 +585,7 @@ static int hi3670_phy_exit(struct phy *phy)
 	return ret;
 }
 
-static struct phy_ops hi3670_phy_ops = {
+static const struct phy_ops hi3670_phy_ops = {
 	.init		= hi3670_phy_init,
 	.exit		= hi3670_phy_exit,
 	.owner		= THIS_MODULE,
Signature · 1 line
2.27.0
maintainer
#1 lore raw
Quoted 4 lines · Atul Gopinathan

Fix the following types of checkpatch error and warning:

ERROR: code indent should use tabs where possible
WARNING: struct phy_ops should normally be const

That is 2 different things, which means this should be 2 different patches. Please make this a patch series and resend.

thanks,

greg k-h