lkml.org 
[lkml]   [2011]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v9 1/1] PRUSS UIO driver support
    Date
    On Tuesday 08 March 2011, Thomas Gleixner wrote:
    > >
    > > +static irqreturn_t pruss_handler(int irq, struct uio_info *info) {
    > > + struct pruss_priv *priv = info->priv;
    > > + struct uio_pruss_dev *gdev = priv->pupdev;
    > >
    > > Note that info is a pointer to array supporting 8 interrupts. This allows to
    > > redirect to driver structure via info->priv quickly.
    >
    > struct uio_pruss_dev *dev = container_of(info, struct uio_pruss_dev, info);
    >
    > Perhaps ?

    That would require having the same number of uio_info structs as uio_pruss_dev
    instances. Right now, one platform device has one uio_pruss_dev instance, which
    has 8 uio_info instances, so the container_of() trick doesn't work.

    Arnd


    \
     
     \ /
      Last update: 2011-03-08 14:27    [W:0.047 / U:0.084 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site