diff for duplicates of <1469097692-103146-5-git-send-email-benoit@wsystem.com> diff --git a/a/1.txt b/N1/1.txt index 5336983..270718e 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -11,7 +11,7 @@ all cases. Indeed, all the registers must be initialized if the voltage has been lower than VLOW2 (triggering V2F), but not low enough to trigger a POR. -Signed-off-by: Beno=C3=AEt Th=C3=A9baudeau <benoit@wsystem.com> +Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com> --- drivers/rtc/rtc-rv8803.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) @@ -20,55 +20,41 @@ diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c index 09ab5cb..24c688e 100644 --- a/drivers/rtc/rtc-rv8803.c +++ b/drivers/rtc/rtc-rv8803.c -@@ -223,11 +223,21 @@ static int rv8803_set_time(struct device *dev, struct= - rtc_time *tm) +@@ -223,11 +223,21 @@ static int rv8803_set_time(struct device *dev, struct rtc_time *tm) { - struct rv8803_data *rv8803 =3D dev_get_drvdata(dev); + struct rv8803_data *rv8803 = dev_get_drvdata(dev); u8 date[7]; - int flags, ret; + int ctrl, flags, ret; -=20 + if ((tm->tm_year < 100) || (tm->tm_year > 199)) return -EINVAL; -=20 -+ ctrl =3D rv8803_read_reg(rv8803->client, RV8803_CTRL); + ++ ctrl = rv8803_read_reg(rv8803->client, RV8803_CTRL); + if (ctrl < 0) + return ctrl; + + /* Stop the clock */ -+ ret =3D rv8803_write_reg(rv8803->client, RV8803_CTRL, ++ ret = rv8803_write_reg(rv8803->client, RV8803_CTRL, + ctrl | RV8803_CTRL_RESET); + if (ret) + return ret; + - date[RV8803_SEC] =3D bin2bcd(tm->tm_sec); - date[RV8803_MIN] =3D bin2bcd(tm->tm_min); - date[RV8803_HOUR] =3D bin2bcd(tm->tm_hour); -@@ -240,6 +250,12 @@ static int rv8803_set_time(struct device *dev, struct = -rtc_time *tm) + date[RV8803_SEC] = bin2bcd(tm->tm_sec); + date[RV8803_MIN] = bin2bcd(tm->tm_min); + date[RV8803_HOUR] = bin2bcd(tm->tm_hour); +@@ -240,6 +250,12 @@ static int rv8803_set_time(struct device *dev, struct rtc_time *tm) if (ret) return ret; -=20 + + /* Restart the clock */ -+ ret =3D rv8803_write_reg(rv8803->client, RV8803_CTRL, ++ ret = rv8803_write_reg(rv8803->client, RV8803_CTRL, + ctrl & ~RV8803_CTRL_RESET); + if (ret) + return ret; + mutex_lock(&rv8803->flags_lock); -=20 - flags =3D rv8803_read_reg(rv8803->client, RV8803_FLAG); ---=20 + + flags = rv8803_read_reg(rv8803->client, RV8803_FLAG); +-- 2.5.0 - ---=20 -You received this message because you are subscribed to "rtc-linux". -Membership options at http://groups.google.com/group/rtc-linux . -Please read http://groups.google.com/group/rtc-linux/web/checklist -before submitting a driver. ----=20 -You received this message because you are subscribed to the Google Groups "= -rtc-linux" group. -To unsubscribe from this group and stop receiving emails from it, send an e= -mail to rtc-linux+unsubscribe@googlegroups.com. -For more options, visit https://groups.google.com/d/optout. diff --git a/a/content_digest b/N1/content_digest index 92797ec..1fe8715 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "ref\01469097692-103146-1-git-send-email-benoit@wsystem.com\0" "From\0Beno\303\256t Th\303\251baudeau <benoit@wsystem.com>\0" - "Subject\0[rtc-linux] [PATCH 5/6] rtc: rv8803: Stop the clock while setting the time\0" + "Subject\0[PATCH 5/6] rtc: rv8803: Stop the clock while setting the time\0" "Date\0Thu, 21 Jul 2016 12:41:31 +0200\0" "To\0rtc-linux@googlegroups.com\0" "Cc\0linux-kernel@vger.kernel.org" @@ -22,7 +22,7 @@ "has been lower than VLOW2 (triggering V2F), but not low enough to\n" "trigger a POR.\n" "\n" - "Signed-off-by: Beno=C3=AEt Th=C3=A9baudeau <benoit@wsystem.com>\n" + "Signed-off-by: Beno\303\256t Th\303\251baudeau <benoit@wsystem.com>\n" "---\n" " drivers/rtc/rtc-rv8803.c | 18 +++++++++++++++++-\n" " 1 file changed, 17 insertions(+), 1 deletion(-)\n" @@ -31,57 +31,43 @@ "index 09ab5cb..24c688e 100644\n" "--- a/drivers/rtc/rtc-rv8803.c\n" "+++ b/drivers/rtc/rtc-rv8803.c\n" - "@@ -223,11 +223,21 @@ static int rv8803_set_time(struct device *dev, struct=\n" - " rtc_time *tm)\n" + "@@ -223,11 +223,21 @@ static int rv8803_set_time(struct device *dev, struct rtc_time *tm)\n" " {\n" - " \tstruct rv8803_data *rv8803 =3D dev_get_drvdata(dev);\n" + " \tstruct rv8803_data *rv8803 = dev_get_drvdata(dev);\n" " \tu8 date[7];\n" "-\tint flags, ret;\n" "+\tint ctrl, flags, ret;\n" - "=20\n" + " \n" " \tif ((tm->tm_year < 100) || (tm->tm_year > 199))\n" " \t\treturn -EINVAL;\n" - "=20\n" - "+\tctrl =3D rv8803_read_reg(rv8803->client, RV8803_CTRL);\n" + " \n" + "+\tctrl = rv8803_read_reg(rv8803->client, RV8803_CTRL);\n" "+\tif (ctrl < 0)\n" "+\t\treturn ctrl;\n" "+\n" "+\t/* Stop the clock */\n" - "+\tret =3D rv8803_write_reg(rv8803->client, RV8803_CTRL,\n" + "+\tret = rv8803_write_reg(rv8803->client, RV8803_CTRL,\n" "+\t\t\t ctrl | RV8803_CTRL_RESET);\n" "+\tif (ret)\n" "+\t\treturn ret;\n" "+\n" - " \tdate[RV8803_SEC] =3D bin2bcd(tm->tm_sec);\n" - " \tdate[RV8803_MIN] =3D bin2bcd(tm->tm_min);\n" - " \tdate[RV8803_HOUR] =3D bin2bcd(tm->tm_hour);\n" - "@@ -240,6 +250,12 @@ static int rv8803_set_time(struct device *dev, struct =\n" - "rtc_time *tm)\n" + " \tdate[RV8803_SEC] = bin2bcd(tm->tm_sec);\n" + " \tdate[RV8803_MIN] = bin2bcd(tm->tm_min);\n" + " \tdate[RV8803_HOUR] = bin2bcd(tm->tm_hour);\n" + "@@ -240,6 +250,12 @@ static int rv8803_set_time(struct device *dev, struct rtc_time *tm)\n" " \tif (ret)\n" " \t\treturn ret;\n" - "=20\n" + " \n" "+\t/* Restart the clock */\n" - "+\tret =3D rv8803_write_reg(rv8803->client, RV8803_CTRL,\n" + "+\tret = rv8803_write_reg(rv8803->client, RV8803_CTRL,\n" "+\t\t\t ctrl & ~RV8803_CTRL_RESET);\n" "+\tif (ret)\n" "+\t\treturn ret;\n" "+\n" " \tmutex_lock(&rv8803->flags_lock);\n" - "=20\n" - " \tflags =3D rv8803_read_reg(rv8803->client, RV8803_FLAG);\n" - "--=20\n" - "2.5.0\n" - "\n" - "--=20\n" - "You received this message because you are subscribed to \"rtc-linux\".\n" - "Membership options at http://groups.google.com/group/rtc-linux .\n" - "Please read http://groups.google.com/group/rtc-linux/web/checklist\n" - "before submitting a driver.\n" - "---=20\n" - "You received this message because you are subscribed to the Google Groups \"=\n" - "rtc-linux\" group.\n" - "To unsubscribe from this group and stop receiving emails from it, send an e=\n" - "mail to rtc-linux+unsubscribe@googlegroups.com.\n" - For more options, visit https://groups.google.com/d/optout. + " \n" + " \tflags = rv8803_read_reg(rv8803->client, RV8803_FLAG);\n" + "-- \n" + 2.5.0 -aaa7d878dbf5414b8d84f2809eea8949ccd5e67d436ef8a0eb8b7cbc761116fe +551b8ce93565a12a7a5a237254c2047b11d4bb851e0eaf8d0a76ca3050343e5d
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.