• David Brownell's avatar
    [PATCH] ARM: OMAP: I2C cleanups · ff0d5f8b
    David Brownell authored
    I2C driver cleanups, shrinking object code by a bit over 1KB:
    
        * cleanup debug-only code
    	- remove the scan code ... doesn't work, among other things
    	- default debug (and scan) code to "off";
    	- reduce (ab)use of driver-specific printk wrappers;
        * comments:
    	- correct and/or cleanup;
    	- remove internal changelog (that's for GIT, BK, CVS, etc);
        * move all MODULE_* stuff to conventional locations;
        * fix some of the whitespace problems
    
    Plus small bugfixes:
    
        * reserve physical memory addresses instead of virtual i/o ones;
        * define the adapter as supporting "I2C_CLASS_HWMON"
        * don't clobber driver state if reservation fails
        * check directly for I2C rev1 instead of omap1510 CPU;
        * using the right driver name in several places.
        * startup message info is no longer content-free
    
    Plus start on the "sparse" fixes.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    ff0d5f8b
i2c-omap.c 13.7 KB