[PARPORT] [PATCH 2.5.63 6/9] Update the Atari parport driver for new module API.

From: Bob Miller (rem@osdl.org)
Date: Thu Feb 27 2003 - 17:03:11 EST

  • Next message: Bob Miller: "[PARPORT] [PATCH 2.5.63 8/9] Update the Mutliface 3 parport driver for new module API."

    The patch below updates the Atari parallel port driver to use the new module
    interfaces and C99 initializers. This hasn't been tested (sorry no hardware).

    -- 
    Bob Miller					Email: rem@osdl.org
    Open Source Development Lab			Phone: 503.626.2455 Ext. 17
    linux-parport@torque.net
    [PATCH 2.5.63 5/9] Update the Archimedes parport driver for new module API.
    

    diff -Nru a/drivers/parport/parport_atari.c b/drivers/parport/parport_atari.c --- a/drivers/parport/parport_atari.c Thu Feb 27 09:46:20 2003 +++ b/drivers/parport/parport_atari.c Thu Feb 27 09:46:20 2003 @@ -147,53 +147,40 @@ #endif } -static void -parport_atari_inc_use_count(void) -{ - MOD_INC_USE_COUNT; -} - -static void -parport_atari_dec_use_count(void) -{ - MOD_DEC_USE_COUNT; -} - static struct parport_operations parport_atari_ops = { - parport_atari_write_data, - parport_atari_read_data, + .write_data = parport_atari_write_data, + .read_data = parport_atari_read_data, - parport_atari_write_control, - parport_atari_read_control, - parport_atari_frob_control, + .write_control = parport_atari_write_control, + .read_control = parport_atari_read_control, + .frob_control = parport_atari_frob_control, - parport_atari_read_status, + .read_status = parport_atari_read_status, - parport_atari_enable_irq, - parport_atari_disable_irq, + .enable_irq = parport_atari_enable_irq, + .disable_irq = parport_atari_disable_irq, - parport_atari_data_forward, - parport_atari_data_reverse, + .data_forward = parport_atari_data_forward, + .data_reverse = parport_atari_data_reverse, - parport_atari_init_state, - parport_atari_save_state, - parport_atari_restore_state, + .init_state = parport_atari_init_state, + .save_state = parport_atari_save_state, + .restore_state = parport_atari_restore_state, - parport_atari_inc_use_count, - parport_atari_dec_use_count, + .epp_write_data = parport_ieee1284_epp_write_data, + .epp_read_data = parport_ieee1284_epp_read_data, + .epp_write_addr = parport_ieee1284_epp_write_addr, + .epp_read_addr = parport_ieee1284_epp_read_addr, - parport_ieee1284_epp_write_data, - parport_ieee1284_epp_read_data, - parport_ieee1284_epp_write_addr, - parport_ieee1284_epp_read_addr, + .ecp_write_data = parport_ieee1284_ecp_write_data, + .ecp_read_data = parport_ieee1284_ecp_read_data, + .ecp_write_addr = parport_ieee1284_ecp_write_addr, - parport_ieee1284_ecp_write_data, - parport_ieee1284_ecp_read_data, - parport_ieee1284_ecp_write_addr, + .compat_write_data = parport_ieee1284_write_compat, + .nibble_read_data = parport_ieee1284_read_nibble, + .byte_read_data = parport_ieee1284_read_byte, - parport_ieee1284_write_compat, - parport_ieee1284_read_nibble, - parport_ieee1284_read_byte, + .owner = THIS_MODULE, };

    -- 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 : Thu Feb 27 2003 - 17:15:49 EST