• Jonathan Cameron's avatar
    iio: adis: Cleanout unused headers · 9654c414
    Jonathan Cameron authored
    0-day recently added the include-what-you-use header checker and
    it gave a warning on an adis patch.  As such I decided to
    run it on all the adis drivers and see if it made sensible suggestions.
    
    Note this doesn't represent a complete list of what it suggested changing
    as I filtered out a few on the basis they are standard headers used to
    effectively include a bunch of other headers.
    
    Could split this into a patch per driver if people prefer.
    
    Note to anyone else trying this tool is that it is somewhat
    of a loose cannon so you will be wanting to carefully check any
    suggestions before proposing patches!
    
    I thought about also reorganising the headers whilst here, but
    that would make this patch harder to read, or lead to another rather
    noisy patch across most of the files.
    Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
    Reviewed-by: default avatarAlexandru Ardelean <ardeleanalex@gmail.com>
    Link: https://lore.kernel.org/r/20210603193616.3708447-1-jic23@kernel.org
    9654c414
adis16460.c 11.3 KB