msm: mdss: Fix error cases in AD config

The BL linearity LUT was not being copied correctly. This change allows
AD config to exit with errors correctly if the BL linearity LUT is not
passed correctly.

Change-Id: I491a7cc4b168b7691c65cbc2d2963f8a7a3f804d
Signed-off-by: Benet Clark <benetc@codeaurora.org>
msm: mdss: Read the max brightness level from device tree

Parse the maximum brightness level supported by different targets from
device tree instead of defining a macro for all targets.

Change-Id: If997f87c75d763395844cc11dbb8b8c0c24f4212
Signed-off-by: Ping Li <quicpingli@codeaurora.org>
msm: mdss: Support post processing blocks address access

Support MDP address read/write for post processing blocks
like PA, ARGC, PCC, IGC, dither, etc on all dspps,
layer mixers and source pipes for display calibration tool.
It checks the post processing blocks address ranges against
the base address provided in mdss dtsi.

Change-Id: Ief0ae097c542e4372d5690b5b8ca94530da54cba
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>