1. 25 Oct, 2017 3 commits
  2. 23 Oct, 2017 2 commits
  3. 20 Oct, 2017 1 commit
    • Andrew Jeffery's avatar
      gpio: Fix loose spelling · 2cbfca66
      Andrew Jeffery authored
      Literally.
      
      I expect "lose" was meant here, rather than "loose", though you could feasibly
      use a somewhat uncommon definition of "loose" to mean what would be meant by
      "lose": "Loose the hounds" for instance, as in "Release the hounds".
      Substituting in "value" for "hounds" gives "release the value", and makes some
      sense, but futher substituting back to loose gives "loose the value" which
      overall just seems a bit anachronistic.
      
      Instead, use modern, pragmatic English and save a character.
      
      Cc: Russell Currey <ruscur@russell.cc>
      Signed-off-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      2cbfca66
  4. 19 Oct, 2017 14 commits
  5. 08 Oct, 2017 1 commit
  6. 06 Oct, 2017 1 commit
  7. 05 Oct, 2017 1 commit
  8. 04 Oct, 2017 2 commits
    • Linus Walleij's avatar
      gpio: Alter semantics of *raw* operations to actually be raw · 02e47980
      Linus Walleij authored
      Currently calls to:
      gpiod_direction_output_raw()
      gpiod_set_raw_value()
      gpiod_set_raw_array_value()
      gpiod_set_raw_value_cansleep()
      gpiod_set_raw_array_value_cansleep()
      
      Respect that we do not want to invert the value written, but will
      still apply special open drain/open source semantics if the line has
      an open drain/open source flag.
      
      It also forbids us from driving an output marked as an interrupt
      line.
      
      This does not fit with the function name and expected semantics. In
      the w1 host driver (for example) we need to handle a line as open drain
      but sometimes force it to pull up, which means we should be able to
      use the gpiod_set_raw_value() for this, but it currently does not
      work.
      
      There are also use cases where users actually want to drive a line
      used by an interrupt. This is what they should be expected to use
      the *raw* accessors for.
      
      I have looked over the current users of this API and they do not seem
      to be using the *raw* accessors with open drain or open source so let's
      augment this behaviour before we have users expecting the inconsistent
      semantic.
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      02e47980
    • Linus Walleij's avatar
      gpio: Get rid of _prefix and __prefixes · fac9d885
      Linus Walleij authored
      The arbitrarily marking of a function with _ or __ is taking to mean
      "perform some inner core of the caller" or something like that. At other
      times, this syntax has a totally different meaning.
      
      I don't like this since it is unambious and unhelpful to people reading
      the code, so replace it with _commit() suffixes.
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      fac9d885
  9. 22 Sep, 2017 1 commit
  10. 21 Sep, 2017 2 commits
  11. 19 Sep, 2017 3 commits
  12. 16 Sep, 2017 9 commits