Re: UIO device name

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joakim Tjernlund
Date: Wednesday, September 24, 2008 - 2:57 am

On Wed, 2008-09-24 at 18:35 +0900, Paul Mundt wrote:

Right, but I want to do it from within the kernel when I create the
device because that the only place I truly know what HW the uio maps to.

I found that this works:
 struct uio_info *info,
 struct uio_device *idev;

 idev = info->uio_dev;
 device_rename(idev->dev, "irq4");

but then I have to copy the private uio_device struct from uio.c
Is there a better way to get at idev->dev?

 Jocke

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
UIO device name, Joakim Tjernlund, (Wed Sep 24, 2:21 am)
Re: UIO device name, Paul Mundt, (Wed Sep 24, 2:35 am)
Re: UIO device name, Joakim Tjernlund, (Wed Sep 24, 2:57 am)
Re: UIO device name, Paul Mundt, (Wed Sep 24, 3:14 am)
Re: UIO device name, Hans J. Koch, (Wed Sep 24, 3:22 am)
Re: UIO device name, Joakim Tjernlund, (Wed Sep 24, 4:33 am)
Re: UIO device name, Paul Mundt, (Wed Sep 24, 4:47 am)
Re: UIO device name, Joakim Tjernlund, (Wed Sep 24, 5:38 am)
Re: UIO device name, Ben Nizette, (Wed Sep 24, 3:57 pm)
Re: UIO device name, Joakim Tjernlund, (Thu Sep 25, 3:05 am)
Re: UIO device name, Ben Nizette, (Thu Sep 25, 3:48 am)
Re: UIO device name, Joakim Tjernlund, (Thu Sep 25, 4:41 am)
Re: UIO device name, Paul Mundt, (Thu Sep 25, 4:53 am)
Re: UIO device name, Joakim Tjernlund, (Thu Sep 25, 5:36 am)