]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtc: rx8025: fix incorrect register reference
authorYuta Hayama <hayama@lineo.co.jp>
Wed, 15 Oct 2025 03:07:05 +0000 (12:07 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:46 +0000 (15:37 -0500)
commit34c40428a5e3baeec8339a62c2f0ab899c7c52eb
treef6512f8e890fea81b84aead937a8b6585bb657c7
parent009270208f76456c2cefcd565da263b90bb2eadb
rtc: rx8025: fix incorrect register reference

commit 162f24cbb0f6ec596e7e9f3e91610d79dc805229 upstream.

This code is intended to operate on the CTRL1 register, but ctrl[1] is
actually CTRL2. Correctly, ctrl[0] is CTRL1.

Signed-off-by: Yuta Hayama <hayama@lineo.co.jp>
Fixes: 71af91565052 ("rtc: rx8025: fix 12/24 hour mode detection on RX-8035")
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/eae5f479-5d28-4a37-859d-d54794e7628c@lineo.co.jp
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-rx8025.c