mmc: core: prepend 0x to OCR entry in sysfs
authorBastian Stender <bst@pengutronix.de>
Tue, 28 Nov 2017 08:24:07 +0000 (09:24 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 29 Nov 2017 09:46:53 +0000 (10:46 +0100)
commitc892b0d81705c566f575e489efc3c50762db1bde
tree81a089385bf4360c78cf89c6d2cbef7f698c0549
parent80a780a167d9267c72867b806142bd6ec69ba123
mmc: core: prepend 0x to OCR entry in sysfs

The sysfs entry "ocr" was missing the 0x prefix to identify it as hex
formatted.

Fixes: 5fb06af7a33b ("mmc: core: Extend sysfs with OCR register")
Signed-off-by: Bastian Stender <bst@pengutronix.de>
Cc: <stable@vger.kernel.org> # v4.8+
[Ulf: Amended change to also cover SD-cards]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c