[Intel-gfx] [PATCH] drm/i915/SDVO: For sysfs link put directory and target in correct order

Imre Deak imre.deak at intel.com
Fri Apr 11 19:26:25 CEST 2014


On Fri, 2014-04-11 at 19:07 +0200, Egbert Eich wrote:
> When linking the i2c sysfs file into the connector's directory
> pass directory and link target in the right order.
> This code was introduced with:
> 
>   commit 931c1c26983b4f84e33b78579fc8d57e4a14c6b4
>   Author: Imre Deak <imre.deak at intel.com>
>   Date:   Tue Feb 11 17:12:51 2014 +0200
> 
>     drm/i915: sdvo: add i2c sysfs symlink to the connector's directory
> 
>     This is the same what we do for DP connectors, so make things more
>     consistent.
> 
> Signed-off-by: Egbert Eich <eich at suse.de>

Oops, good catch. The fix looks ok, fwiw:
Reviewed-by: Imre Deak <imre.deak at intel.com>

> ---
>  drivers/gpu/drm/i915/intel_sdvo.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
> index 5043f16..2d4d461 100644
> --- a/drivers/gpu/drm/i915/intel_sdvo.c
> +++ b/drivers/gpu/drm/i915/intel_sdvo.c
> @@ -2428,8 +2428,8 @@ intel_sdvo_connector_init(struct intel_sdvo_connector *connector,
>  	if (ret < 0)
>  		goto err1;
>  
> -	ret = sysfs_create_link(&encoder->ddc.dev.kobj,
> -				&drm_connector->kdev->kobj,
> +	ret = sysfs_create_link(&drm_connector->kdev->kobj,
> +				&encoder->ddc.dev.kobj,
>  				encoder->ddc.dev.kobj.name);
>  	if (ret < 0)
>  		goto err2;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20140411/17c90ba5/attachment.sig>


More information about the Intel-gfx mailing list