w1: ds2438: fixing bug that would always get page0
authorLuiz Sampaio <sampaio.ime@gmail.com>
Wed, 19 May 2021 22:30:44 +0000 (19:30 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 May 2021 12:51:33 +0000 (14:51 +0200)
commit1f5e7518f063728aee0679c5086b92d8ea429e11
tree9ddbe16f624511c31dc5738459c63f7c04dceefc
parent67c6964228b6c0c759893915f0cb47a564c256dc
w1: ds2438: fixing bug that would always get page0

The purpose of the w1_ds2438_get_page function is to get the register
values at the page passed as the pageno parameter. However, the page0 was
hardcoded, such that the function always returned the page0 contents. Fixed
so that the function can retrieve any page.

Signed-off-by: Luiz Sampaio <sampaio.ime@gmail.com>
Link: https://lore.kernel.org/r/20210519223046.13798-5-sampaio.ime@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_ds2438.c