mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Anand Ashok Dumbre <anand.ashok.dumbre@xilinx.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>,
	Manish Narani <manish.narani@xilinx.com>
Subject: [jic23-iio:togreg 100/103] drivers/iio/adc/xilinx-ams.c:621 ams_get_pl_scale() warn: inconsistent indenting
Date: Tue, 21 Dec 2021 13:37:59 +0800	[thread overview]
Message-ID: <202112211357.E8JZJON6-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
head:   d37e6bb10a086d7d7695122e03e6431eb0ea503a
commit: 18834cbc79f73f2814d8388de9eea5bbaddcc3d6 [100/103] iio: adc: Add Xilinx AMS driver
config: s390-randconfig-m031-20211220 (https://download.01.org/0day-ci/archive/20211221/202112211357.E8JZJON6-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

smatch warnings:
drivers/iio/adc/xilinx-ams.c:621 ams_get_pl_scale() warn: inconsistent indenting

vim +621 drivers/iio/adc/xilinx-ams.c

   591	
   592	static int ams_get_pl_scale(struct ams *ams, int address)
   593	{
   594		int val, regval;
   595	
   596		switch (address) {
   597		case AMS_SUPPLY1:
   598		case AMS_SUPPLY2:
   599		case AMS_SUPPLY3:
   600		case AMS_SUPPLY4:
   601		case AMS_SUPPLY5:
   602		case AMS_SUPPLY6:
   603		case AMS_VCCAMS:
   604		case AMS_VREFP:
   605		case AMS_VREFN:
   606			val = AMS_SUPPLY_SCALE_3VOLT_mV;
   607			break;
   608		case AMS_SUPPLY7:
   609			regval = readl(ams->pl_base + AMS_REG_CONFIG4);
   610			if (FIELD_GET(AMS_VUSER0_MASK, regval))
   611				val = AMS_SUPPLY_SCALE_6VOLT_mV;
   612			else
   613				val = AMS_SUPPLY_SCALE_3VOLT_mV;
   614			break;
   615		case AMS_SUPPLY8:
   616			regval = readl(ams->pl_base + AMS_REG_CONFIG4);
   617			if (FIELD_GET(AMS_VUSER1_MASK, regval))
   618				val = AMS_SUPPLY_SCALE_6VOLT_mV;
   619			else
   620				val = AMS_SUPPLY_SCALE_3VOLT_mV;
 > 621						break;
   622		case AMS_SUPPLY9:
   623			regval = readl(ams->pl_base + AMS_REG_CONFIG4);
   624			if (FIELD_GET(AMS_VUSER2_MASK, regval))
   625				val = AMS_SUPPLY_SCALE_6VOLT_mV;
   626			else
   627				val = AMS_SUPPLY_SCALE_3VOLT_mV;
   628			break;
   629		case AMS_SUPPLY10:
   630			regval = readl(ams->pl_base + AMS_REG_CONFIG4);
   631			if (FIELD_GET(AMS_VUSER3_MASK, regval))
   632				val = AMS_SUPPLY_SCALE_6VOLT_mV;
   633			else
   634				val = AMS_SUPPLY_SCALE_3VOLT_mV;
   635			break;
   636		case AMS_VP_VN:
   637		case AMS_REG_VAUX(0) ... AMS_REG_VAUX(15):
   638			val = AMS_SUPPLY_SCALE_1VOLT_mV;
   639			break;
   640		default:
   641			val = AMS_SUPPLY_SCALE_1VOLT_mV;
   642			break;
   643		}
   644	
   645		return val;
   646	}
   647	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2021-12-21  5:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112211357.E8JZJON6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=anand.ashok.dumbre@xilinx.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manish.narani@xilinx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®