Re: [PATCH v2 17/17] UBI: introduce the VID buffer concept

From: Boris Brezillon
Date: Fri Sep 16 2016 - 07:41:38 EST


On Fri, 16 Sep 2016 13:38:27 +0200
Richard Weinberger <richard@xxxxxx> wrote:

> Boris,
>
> On 05.09.2016 17:05, Boris Brezillon wrote:
> > +/**
> > + * ubi_get_vid_hdr - Get the VID header attached to a VID buffer
> > + * @vidb: the VID buffer to free
>
> Copy paste error?

Yep. Will fix that.

>
> > + */
> > +static inline struct ubi_vid_hdr *ubi_get_vid_hdr(struct ubi_vid_io_buf *vidb)
> > +{
> > + return vidb->hdr;
>
> I guess in future there will be a second parameter to return the nth header located
> on the buffer?

Exactly.

>
> Thanks,
> //richard