aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-09-04 16:46:04 -0400
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-09-05 03:55:04 -0400
commit57ec2d9580760ce35d7c54b57f8e5f7e98049b8e (patch)
tree9fe460ba0395b024d9524d5e25844f31845a810f
parentf2b4801201a46eaa9a00a39a1e2d5aa8c9864991 (diff)
rtc: ds1307: use u32
u32 should be used instead of uint32_t Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--drivers/rtc/rtc-ds1307.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index 93fb08452159..328183e0e121 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -142,13 +142,13 @@ struct chip_desc {
142 irq_handler_t irq_handler; 142 irq_handler_t irq_handler;
143 const struct rtc_class_ops *rtc_ops; 143 const struct rtc_class_ops *rtc_ops;
144 u16 trickle_charger_reg; 144 u16 trickle_charger_reg;
145 u8 (*do_trickle_setup)(struct ds1307 *, uint32_t, 145 u8 (*do_trickle_setup)(struct ds1307 *, u32,
146 bool); 146 bool);
147}; 147};
148 148
149static int ds1307_get_time(struct device *dev, struct rtc_time *t); 149static int ds1307_get_time(struct device *dev, struct rtc_time *t);
150static int ds1307_set_time(struct device *dev, struct rtc_time *t); 150static int ds1307_set_time(struct device *dev, struct rtc_time *t);
151static u8 do_trickle_setup_ds1339(struct ds1307 *, uint32_t ohms, bool diode); 151static u8 do_trickle_setup_ds1339(struct ds1307 *, u32 ohms, bool diode);
152static irqreturn_t rx8130_irq(int irq, void *dev_id); 152static irqreturn_t rx8130_irq(int irq, void *dev_id);
153static int rx8130_read_alarm(struct device *dev, struct rtc_wkalrm *t); 153static int rx8130_read_alarm(struct device *dev, struct rtc_wkalrm *t);
154static int rx8130_set_alarm(struct device *dev, struct rtc_wkalrm *t); 154static int rx8130_set_alarm(struct device *dev, struct rtc_wkalrm *t);
@@ -963,7 +963,7 @@ static int ds1307_nvram_write(void *priv, unsigned int offset, void *val,
963/*----------------------------------------------------------------------*/ 963/*----------------------------------------------------------------------*/
964 964
965static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307, 965static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307,
966 uint32_t ohms, bool diode) 966 u32 ohms, bool diode)
967{ 967{
968 u8 setup = (diode) ? DS1307_TRICKLE_CHARGER_DIODE : 968 u8 setup = (diode) ? DS1307_TRICKLE_CHARGER_DIODE :
969 DS1307_TRICKLE_CHARGER_NO_DIODE; 969 DS1307_TRICKLE_CHARGER_NO_DIODE;
@@ -989,7 +989,7 @@ static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307,
989static u8 ds1307_trickle_init(struct ds1307 *ds1307, 989static u8 ds1307_trickle_init(struct ds1307 *ds1307,
990 const struct chip_desc *chip) 990 const struct chip_desc *chip)
991{ 991{
992 uint32_t ohms; 992 u32 ohms;
993 bool diode = true; 993 bool diode = true;
994 994
995 if (!chip->do_trickle_setup) 995 if (!chip->do_trickle_setup)