Re: [PATCH v1] media: ipu3-cio2: Use macros from mm.h

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

 



On Fri, Oct 30, 2020 at 12:12 AM Sakari Ailus
<sakari.ailus@xxxxxxxxxxxxxxx> wrote:
> On Thu, Oct 29, 2020 at 10:16:57PM +0200, Andy Shevchenko wrote:
> > On Wed, Oct 28, 2020 at 04:11:05PM +0800, Bingbu Cao wrote:

...

> > I just realized I can rewrite this as:
> >
> >       remaining = offset_in_page(remaining) ?: PAGE_SIZE;
> >       entry[1].second_entry.last_page_available_bytes = remaining - 1;
> >
> > Would it work for you?
>
> Looks good to me.

Have you got v2?

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux