On Mon, Jul 14, 2003 at 01:14:48PM +0100, Philip Graham Willoughby wrote:
> Below my sig is the code I have currently, with the point-of-failure
> indicated (search for /*). I know how to write the code I want using
> direct access to the parallel port on the PC, but I wish to use the
> kernel parport stack so that it will work if I bung it on a sun too.
I think you need to take a closer look at the documentation.
> static void
> attach (struct parport *thing)
> {
This is your 'attach' callback, called to ask your driver if it wants
to use this port or not. If it does, it should call
parport_register_device.
> if (thing->devices == NULL) /* It is. Why? */
Because you haven't registered one.
Tim.
*/
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Mon Jul 14 2003 - 10:02:15 EDT