• Greg Kroah-Hartman's avatar
    driver core: class: remove struct class_interface * from callbacks · 2243acd5
    Greg Kroah-Hartman authored
    The add_dev and remove_dev callbacks in struct class_interface currently
    pass in a pointer back to the class_interface structure that is calling
    them, but none of the callback implementations actually use this pointer
    as it is pointless (the structure is known, the driver passed it in in
    the first place if it is really needed again.)
    
    So clean this up and just remove the pointer from the callbacks and fix
    up all callback functions.
    
    Cc: Jean Delvare <jdelvare@suse.com>
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Eric Dumazet <edumazet@google.com>
    Cc: Jakub Kicinski <kuba@kernel.org>
    Cc: Paolo Abeni <pabeni@redhat.com>
    Cc: Kurt Schwemmer <kurt.schwemmer@microsemi.com>
    Cc: Jon Mason <jdmason@kudzu.us>
    Cc: Dave Jiang <dave.jiang@intel.com>
    Cc: Allen Hubbe <allenbh@gmail.com>
    Cc: Dominik Brodowski <linux@dominikbrodowski.net>
    Cc: Matt Porter <mporter@kernel.crashing.org>
    Cc: Alexandre Bounine <alex.bo...
    2243acd5
rionet.c 18.3 KB