16 Aug, 2016

1 commit


13 Aug, 2015

1 commit

  • commit acf50b3586f8d8a7530b905e111dda41876d38f4
    "tools:iio:lsiio: add error handling"
    introduced error handling of errors returned from
    read_sysfs_string(), but with a simple if (retval),
    missing the fact that these functions return a positive
    value if the read was successful.

    As a result lsiio regresses and does not show any
    devices on my filesystem. Fix this by checking for
    only negative error codes.

    Cc: Hartmut Knaack
    Signed-off-by: Linus Walleij
    Acked-by: Hartmut Knaack
    Signed-off-by: Jonathan Cameron

    Linus Walleij
     

21 Jul, 2015

2 commits


14 Jun, 2015

2 commits

  • Use more appropriate/common variable names:
    * namepf instead of nameFile in iio_utils.c
    * ret instead of retval in lsiio.c

    Signed-off-by: Hartmut Knaack
    Signed-off-by: Jonathan Cameron

    Hartmut Knaack
     
  • Fix various coding style issues, including:
    * have spaces around operators
    * indentation
    * consolidate parameters in same line
    * required braces
    * adjust/drop comments
    * multiline comment style
    * delete unnecessary empty lines
    * add empty lines to visualize logial code blocks
    * typos

    Signed-off-by: Hartmut Knaack
    Signed-off-by: Jonathan Cameron

    Hartmut Knaack
     

01 Jun, 2015

4 commits


10 Mar, 2015

2 commits