mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
video: samsung: mdnie: Expose no. of display modes
CMHW uses this to determine the display modes supported by the device. Change-Id: I32bdd71f1f336967d41ec4b36f8620ce36cace4b
This commit is contained in:
parent
aaad6adc8e
commit
c7f5e69157
1 changed files with 10 additions and 0 deletions
|
@ -363,6 +363,11 @@ static int fake_id(int app_id)
|
|||
return ret_id;
|
||||
}
|
||||
|
||||
static ssize_t mode_max_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
return snprintf(buf, PAGE_SIZE, "%u\n", MAX_MODE);
|
||||
}
|
||||
|
||||
static ssize_t scenario_store(struct device *dev,
|
||||
struct device_attribute *attr,
|
||||
|
@ -826,6 +831,7 @@ static ssize_t hmt_color_temperature_store(struct device *dev,
|
|||
}
|
||||
|
||||
static DEVICE_ATTR(mode, 0664, mode_show, mode_store);
|
||||
static DEVICE_ATTR(mode_max, 0664, mode_max_show, NULL);
|
||||
static DEVICE_ATTR(scenario, 0664, scenario_show, scenario_store);
|
||||
static DEVICE_ATTR(outdoor, 0664, outdoor_show, outdoor_store);
|
||||
static DEVICE_ATTR(bypass, 0664, bypass_show, bypass_store);
|
||||
|
@ -856,6 +862,10 @@ void create_tcon_mdnie_node(void)
|
|||
if (device_create_file(tune_mdnie_dev, &dev_attr_mode) < 0)
|
||||
DPRINT("Failed to create device file(%s)!\n", dev_attr_mode.attr.name);
|
||||
|
||||
/* MODE MAX */
|
||||
if (device_create_file(tune_mdnie_dev, &dev_attr_mode_max) < 0)
|
||||
DPRINT("Failed to create device file(%s)!\n", dev_attr_mode_max.attr.name);
|
||||
|
||||
/* OUTDOOR */
|
||||
if (device_create_file(tune_mdnie_dev, &dev_attr_outdoor) < 0)
|
||||
DPRINT("Failed to create device file(%s)!\n", dev_attr_outdoor.attr.name);
|
||||
|
|
Loading…
Reference in a new issue