summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/hdmi/hdmi.h
diff options
context:
space:
mode:
authorStephane Viau <sviau@codeaurora.org>2015-01-13 14:33:40 -0500
committerRob Clark <robdclark@gmail.com>2015-02-01 15:32:45 -0500
commit447fa5292fcf09197cf2ce124e8e0ff6c629733a (patch)
tree9b617a032cfb35165ed8db1baaaaeec4cadcf9ff /drivers/gpu/drm/msm/hdmi/hdmi.h
parent5cdde29bc93a1f4d4a4f5a6faa830e368d920280 (diff)
downloadlinux-447fa5292fcf09197cf2ce124e8e0ff6c629733a.tar.gz
linux-447fa5292fcf09197cf2ce124e8e0ff6c629733a.tar.bz2
linux-447fa5292fcf09197cf2ce124e8e0ff6c629733a.zip
drm/msm/hdmi: use dynamic allocation for hdmi resources
Instead of reporting BUG_ON when resources arrays are not dimensioned correctly, this patch does a dynamic allocation of these arrays. This is needed for the following patches that add a regulator for a new target. Signed-off-by: Stephane Viau <sviau@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/hdmi/hdmi.h')
-rw-r--r--drivers/gpu/drm/msm/hdmi/hdmi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.h b/drivers/gpu/drm/msm/hdmi/hdmi.h
index 4d4cad42a776..68fdfb3622a5 100644
--- a/drivers/gpu/drm/msm/hdmi/hdmi.h
+++ b/drivers/gpu/drm/msm/hdmi/hdmi.h
@@ -52,10 +52,10 @@ struct hdmi {
void __iomem *mmio;
- struct regulator *hpd_regs[2];
- struct regulator *pwr_regs[2];
- struct clk *hpd_clks[3];
- struct clk *pwr_clks[2];
+ struct regulator **hpd_regs;
+ struct regulator **pwr_regs;
+ struct clk **hpd_clks;
+ struct clk **pwr_clks;
struct hdmi_phy *phy;
struct i2c_adapter *i2c;