Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iio.h: Include iio/types.h when it exists #763

Closed

Commits on Nov 16, 2021

  1. iio.h: Include iio/types.h when it exists

    enum iio_chan_type and iio_modifier are already defined in
    /usr/include/linux/iio/types.h on linux systems.
    If an application needs to include both (to support iio events for
    instance), compiler will complains these enums are defined twice.
    
    This patch is not without problem:
    - linux system must have latest kernel-headers installed:
    IIO_MOD_O2 modifier has been added to linux 5.9 kernel.
    
    Alter CI/travis/check_kernel.sh accordingly, check it still passes.
    
    Fixes analogdevicesinc#758.
    
    Signed-off-by: Gwendal Grignou <[email protected]>
    gwendalcr committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    dfc613c View commit details
    Browse the repository at this point in the history