• B
    ide: move IDE settings handling to ide-proc.c · 7662d046
    Bartlomiej Zolnierkiewicz 提交于
    * move
    	__ide_add_setting()
    	ide_add_setting()
    	__ide_remove_setting()
    	auto_remove_settings()
    	ide_find_setting_by_name()
    	ide_read_setting()
    	ide_write_setting()
    	set_xfer_rate()
    	ide_add_generic_settings()
    	ide_register_subdriver()
    	ide_unregister_subdriver()
    
      from ide.c to ide-proc.c
    
    * set_{io_32bit,pio_mode,using_dma}() cannot be marked static now, fix it
    
    * rename ide_[un]register_subdriver() to ide_proc_[un]register_driver(),
      update device drivers to use new names
    
    * add CONFIG_IDE_PROC_FS=n versions of ide_proc_[un]register_driver()
      and ide_add_generic_settings()
    
    * make ide_find_setting_by_name(), ide_{read,write}_setting()
      and ide_{add,remove}_proc_entries() static
    
    * cover IDE settings code in device drivers with CONFIG_IDE_PROC_FS #ifdef,
      also while at it cover with CONFIG_IDE_PROC_FS #ifdef ide_driver_t.proc
    
    * remove bogus comment from ide.h
    
    * cover with CONFIG_IDE_PROC_FS #ifdef .proc and .settings in ide_drive_t
    
    Besides saner code this patch results in the IDE core smaller by ~2 kB
    (on x86-32) and IDE disk driver by ~1 kB (ditto) when CONFIG_IDE_PROC_FS=n.
    Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    7662d046
ide-proc.c 22.5 KB