Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: rave-sp: Add legacy EEPROM access command translation

This is needed to make rave-sp-eeprom driver work on "legacy"
firmware.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Andrey Smirnov and committed by
Lee Jones
2b8de8a8 6c450bdf

+3
+2
drivers/mfd/rave-sp.c
··· 635 635 return 0x1E; 636 636 case RAVE_SP_CMD_RESET_REASON: 637 637 return 0x1F; 638 + case RAVE_SP_CMD_RMB_EEPROM: 639 + return 0x20; 638 640 default: 639 641 return -EINVAL; 640 642 }
+1
include/linux/mfd/rave-sp.h
··· 21 21 RAVE_SP_CMD_STATUS = 0xA0, 22 22 RAVE_SP_CMD_SW_WDT = 0xA1, 23 23 RAVE_SP_CMD_PET_WDT = 0xA2, 24 + RAVE_SP_CMD_RMB_EEPROM = 0xA4, 24 25 RAVE_SP_CMD_SET_BACKLIGHT = 0xA6, 25 26 RAVE_SP_CMD_RESET = 0xA7, 26 27 RAVE_SP_CMD_RESET_REASON = 0xA8,