Re: [PATCH] drm/i915: Fix the VBT child device parsing for BSW

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 09, 2015 at 09:49:25AM +0100, Damien Lespiau wrote:
> On Wed, Mar 25, 2015 at 06:45:58PM +0200, ville.syrjala@xxxxxxxxxxxxxxx wrote:
> > +static union child_device_config *
> > +child_device_ptr(struct bdb_general_definitions *p_defs, int i)
> > +{
> > +	return (void *) &p_defs->devices[i * p_defs->child_dev_size];
> > +}
> 
> Actually this looks wrong. We're doing:
> 
>   p_defs->devices + sizeof(union child_device_config) * i * child_dev_size
> 
> instead of:
> 
>   (u8)p_defs->devices + i * child_dev_size
> 
> ?

The patch also had:
-     union child_device_config devices[0];
+     uint8_t devices[0];

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux