Merge "msm: mdss: fix check for igc read"
This commit is contained in:
commit
c8ec64b1cd
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -3980,8 +3980,7 @@ int mdss_mdp_igc_lut_config(struct msm_fb_data_type *mfd,
|
|||
disp_num = config->block - MDP_LOGICAL_BLOCK_DISP_0;
|
||||
|
||||
if (config->ops & MDP_PP_OPS_READ) {
|
||||
if (config->len != IGC_LUT_ENTRIES &&
|
||||
!pp_ops[IGC].pp_get_config) {
|
||||
if (config->len != IGC_LUT_ENTRIES) {
|
||||
pr_err("invalid len for IGC table for read %d\n",
|
||||
config->len);
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Reference in a new issue