summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-zynqmp.c
diff options
context:
space:
mode:
authorSrinivas Goud <srinivas.goud@xilinx.com>2019-10-08 16:25:41 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-10-14 17:49:19 +0200
commitd53bf24db3776842876f83a29a7cd8db2aa3c5ab (patch)
tree4aeb345db775b98291c132d1587f562cad0b747f /drivers/rtc/rtc-zynqmp.c
parent9aa0d0be3856749c3be08089fe12a1f4494a030b (diff)
downloadlinux-d53bf24db3776842876f83a29a7cd8db2aa3c5ab.tar.bz2
rtc: xilinx: Fix calibval variable type
This patch fixes the warnings reported by static code analysis. Updated calibval variable type to unsigned type from signed. Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Link: https://lore.kernel.org/r/20765c4c27aa92c75426b82fd2815ebef6471492.1570544738.git.michal.simek@xilinx.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-zynqmp.c')
-rw-r--r--drivers/rtc/rtc-zynqmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-zynqmp.c b/drivers/rtc/rtc-zynqmp.c
index 55646e053976..539690568298 100644
--- a/drivers/rtc/rtc-zynqmp.c
+++ b/drivers/rtc/rtc-zynqmp.c
@@ -44,7 +44,7 @@ struct xlnx_rtc_dev {
void __iomem *reg_base;
int alarm_irq;
int sec_irq;
- int calibval;
+ unsigned int calibval;
};
static int xlnx_rtc_set_time(struct device *dev, struct rtc_time *tm)