drm/gma500/psb_intel_modes: Remove unused psb_intel_ddc_probe
Subsystems (3)
PATCH 1/1 drm/gma500/psb_intel_modes: Remove unused psb_intel_ddc_probe
From: "Dr. David Alan Gilbert" <[email protected]>
psb_intel_ddc_probe() was added in 2011 by
commit 89c78134cc54 ("gma500: Add Poulsbo support") but has remained unused (probably because drm_get_edid is used instead).
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- drivers/gpu/drm/gma500/psb_intel_drv.h | 1 - drivers/gpu/drm/gma500/psb_intel_modes.c | 31 ------------------------ 2 files changed, 32 deletions(-)
drivers/gpu/drm/gma500/psb_intel_drv.h +0 -1
@@ -182,7 +182,6 @@ struct gma_i2c_chan *gma_i2c_create(struct drm_device *dev, const u32 reg,void gma_i2c_destroy (struct gma_i2c_chan *chan);int psb_intel_ddc_get_modes (struct drm_connector *connector,struct i2c_adapter *adapter); -extern bool psb_intel_ddc_probe (struct i2c_adapter *adapter);extern void psb_intel_crtc_init (struct drm_device *dev,int pipe,struct psb_intel_mode_device *mode_dev);
drivers/gpu/drm/gma500/psb_intel_modes.c +0 -31
@@ -11,37 +11,6 @@#include "psb_intel_drv.h" -/** -* psb_intel_ddc_probe -* @adapter: Associated I2C adaptor -*/ -bool psb_intel_ddc_probe (struct i2c_adapter *adapter) -{ -u8 out_buf[] = {0x0 ,0x0 }; -u8 buf[2 ]; -int ret; -struct i2c_msg msgs[] = { - { - .addr =0x50 , - .flags =0 , - .len =1 , - .buf = out_buf, - }, - { - .addr =0x50 , - .flags =I2C_M_RD , - .len =1 , - .buf = buf, - } - }; - - ret =i2c_transfer (adapter, msgs,2 ); -if (ret ==2 ) -return true; - -return false; -} -/** * psb_intel_ddc_get_modes - get modelist from monitor * @connector: DRM connector device to use
Signature · 1 line
2.48.1
Quoted 11 lines · On Sun, Mar 9, 2025 at 12:44 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
psb_intel_ddc_probe()was added in 2011 by
commit89c78134cc54("gma500: Add Poulsbo support") but has remained unused (probably becausedrm_get_edidis used instead).Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Applied to drm-misc-next
Thanks
Quoted 62 lines
--- drivers/gpu/drm/gma500/psb_intel_drv.h | 1 - drivers/gpu/drm/gma500/psb_intel_modes.c | 31 ------------------------ 2 files changed, 32 deletions(-)drivers/gpu/drm/gma500/psb_intel_drv.h +0
-1@@ -182,7 +182,6 @@ struct gma_i2c_chan *gma_i2c_create(struct drm_device *dev, const u32 reg,void gma_i2c_destroy (struct gma_i2c_chan *chan);int psb_intel_ddc_get_modes (struct drm_connector *connector,struct i2c_adapter *adapter); -extern bool psb_intel_ddc_probe (struct i2c_adapter *adapter);extern void psb_intel_crtc_init (struct drm_device *dev,int pipe,struct psb_intel_mode_device *mode_dev);drivers/gpu/drm/gma500/psb_intel_modes.c +0
-32@@ -11,37 +11,6 @@#include "psb_intel_drv.h" -/** -* psb_intel_ddc_probe -* @adapter: Associated I2C adaptor -*/ -bool psb_intel_ddc_probe (struct i2c_adapter *adapter) -{ -u8 out_buf[] = {0x0 ,0x0 }; -u8 buf[2 ]; -int ret; -struct i2c_msg msgs[] = { - { - .addr =0x50 , - .flags =0 , - .len =1 , - .buf = out_buf, - }, - { - .addr =0x50 , - .flags =I2C_M_RD , - .len =1 , - .buf = buf, - } - }; - - ret =i2c_transfer (adapter, msgs,2 ); -if (ret ==2 ) -return true; - -return false; -} -/** * psb_intel_ddc_get_modes - get modelist from monitor * @connector: DRM connector device to use -- 2.48.1