Merge remote-tracking branch 'origin/upstream/android-common-3.10' into linux-linaro-lsk-v3.10-android+android-common-3.10
This commit is contained in:
commit
8315cce6bb
4 changed files with 13 additions and 10 deletions
|
|
@ -49,6 +49,9 @@ int adf_interface_blank(struct adf_interface *intf, u8 state)
|
|||
if (!intf->ops || !intf->ops->blank)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (state > DRM_MODE_DPMS_OFF)
|
||||
return -EINVAL;
|
||||
|
||||
mutex_lock(&dev->client_lock);
|
||||
if (state != DRM_MODE_DPMS_ON)
|
||||
flush_kthread_worker(&dev->post_worker);
|
||||
|
|
|
|||
|
|
@ -519,10 +519,10 @@ int adf_fbdev_blank(int blank, struct fb_info *info)
|
|||
dpms_state = DRM_MODE_DPMS_STANDBY;
|
||||
break;
|
||||
case FB_BLANK_VSYNC_SUSPEND:
|
||||
dpms_state = DRM_MODE_DPMS_STANDBY;
|
||||
dpms_state = DRM_MODE_DPMS_SUSPEND;
|
||||
break;
|
||||
case FB_BLANK_HSYNC_SUSPEND:
|
||||
dpms_state = DRM_MODE_DPMS_SUSPEND;
|
||||
dpms_state = DRM_MODE_DPMS_STANDBY;
|
||||
break;
|
||||
case FB_BLANK_POWERDOWN:
|
||||
dpms_state = DRM_MODE_DPMS_OFF;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
#include <drm/drm_mode.h>
|
||||
|
||||
#define ADF_NAME_LEN 32
|
||||
#define ADF_MAX_CUSTOM_DATA_SIZE PAGE_SIZE
|
||||
#define ADF_MAX_CUSTOM_DATA_SIZE 4096
|
||||
|
||||
enum adf_interface_type {
|
||||
ADF_INTF_DSI = 0,
|
||||
|
|
@ -126,7 +126,7 @@ struct adf_buffer_config {
|
|||
|
||||
__s64 acquire_fence;
|
||||
};
|
||||
#define ADF_MAX_BUFFERS (PAGE_SIZE / sizeof(struct adf_buffer_config))
|
||||
#define ADF_MAX_BUFFERS (4096 / sizeof(struct adf_buffer_config))
|
||||
|
||||
/**
|
||||
* struct adf_post_config - request to flip to a new set of buffers
|
||||
|
|
@ -152,7 +152,7 @@ struct adf_post_config {
|
|||
|
||||
__s64 complete_fence;
|
||||
};
|
||||
#define ADF_MAX_INTERFACES (PAGE_SIZE / sizeof(__u32))
|
||||
#define ADF_MAX_INTERFACES (4096 / sizeof(__u32))
|
||||
|
||||
/**
|
||||
* struct adf_simple_buffer_allocate - request to allocate a "simple" buffer
|
||||
|
|
@ -233,7 +233,7 @@ struct adf_device_data {
|
|||
size_t custom_data_size;
|
||||
void __user *custom_data;
|
||||
};
|
||||
#define ADF_MAX_ATTACHMENTS (PAGE_SIZE / sizeof(struct adf_attachment))
|
||||
#define ADF_MAX_ATTACHMENTS (4096 / sizeof(struct adf_attachment_config))
|
||||
|
||||
/**
|
||||
* struct adf_device_data - describes a display interface
|
||||
|
|
@ -273,7 +273,7 @@ struct adf_interface_data {
|
|||
size_t custom_data_size;
|
||||
void __user *custom_data;
|
||||
};
|
||||
#define ADF_MAX_MODES (PAGE_SIZE / sizeof(struct drm_mode_modeinfo))
|
||||
#define ADF_MAX_MODES (4096 / sizeof(struct drm_mode_modeinfo))
|
||||
|
||||
/**
|
||||
* struct adf_overlay_engine_data - describes an overlay engine
|
||||
|
|
@ -293,7 +293,7 @@ struct adf_overlay_engine_data {
|
|||
size_t custom_data_size;
|
||||
void __user *custom_data;
|
||||
};
|
||||
#define ADF_MAX_SUPPORTED_FORMATS (PAGE_SIZE / sizeof(__u32))
|
||||
#define ADF_MAX_SUPPORTED_FORMATS (4096 / sizeof(__u32))
|
||||
|
||||
#define ADF_SET_EVENT _IOW('D', 0, struct adf_set_event)
|
||||
#define ADF_BLANK _IOW('D', 1, __u8)
|
||||
|
|
|
|||
|
|
@ -1496,7 +1496,7 @@ static const struct file_operations proc_iface_stat_fmt_fops = {
|
|||
.open = proc_iface_stat_fmt_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
.release = seq_release,
|
||||
.release = seq_release_private,
|
||||
};
|
||||
|
||||
static int __init iface_stat_init(struct proc_dir_entry *parent_procdir)
|
||||
|
|
@ -2904,7 +2904,7 @@ static const struct file_operations proc_qtaguid_ctrl_fops = {
|
|||
.read = seq_read,
|
||||
.write = qtaguid_ctrl_proc_write,
|
||||
.llseek = seq_lseek,
|
||||
.release = seq_release,
|
||||
.release = seq_release_private,
|
||||
};
|
||||
|
||||
static const struct seq_operations proc_qtaguid_stats_seqops = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue