static int __init mtp_offset_get(char *str)
{
if (str != NULL) {
- sscanf(&str[0], "%s", &mtp_offset_from_uboot);
+ sscanf(&str[0], "%s", mtp_offset_from_uboot);
}
parse_string_to_hex(mtp_offset_from_uboot, mtp_offset_t, MTP_LEN + 6);
static int __init elvss_offset_get(char *str)
{
+ unsigned int elvss;
+
if (str != NULL) {
- sscanf(&str[0], "%x", &elvss_offset_from_uboot);
+ sscanf(&str[0], "%x", &elvss);
}
+ elvss_offset_from_uboot = (uint8_t)elvss;
printk(KERN_INFO "sprdfb: [%s]Panel elvss offset from uboot: 0x%x\n", __FUNCTION__, elvss_offset_from_uboot);
return 1;
}
static int __init hbm_offset_get(char *str)
{
if (str != NULL) {
- sscanf(&str[0], "%s", &hbm_offset_from_uboot);
+ sscanf(&str[0], "%s", hbm_offset_from_uboot);
}
parse_string_to_hex(hbm_offset_from_uboot, hbm_offset_t, 15);
static int __init chip_id_get(char *str)
{
if (str != NULL) {
- sscanf(&str[0], "%s", &chip_id_from_uboot);
+ sscanf(&str[0], "%s", chip_id_from_uboot);
}
parse_string_to_hex(chip_id_from_uboot, chip_id_t, 5);
static int __init color_offset_get(char *str)
{
if (str != NULL) {
- sscanf(&str[0], "%s", &color_offset_from_uboot);
+ sscanf(&str[0], "%s", color_offset_from_uboot);
}
parse_string_to_hex(color_offset_from_uboot, color_offset_t, 4);