1. 24 Sep, 2014 2 commits
  2. 23 Sep, 2014 2 commits
    • Alex Elder's avatar
      greybus: rename struct greybus_device · 778c69c9
      Alex Elder authored
      The greybus_device structure represents an Ara phone module.
      It does *not* (necessarily) represent a UniPro device, nor any
      device (like an i2c adapter) that might reside on an Ara module.
      
      As such, rename struct greybus_device to be struct greybus_module.
      Rename all symbols having that type to be "gmod" rather than "gdev".
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      778c69c9
    • Alex Elder's avatar
      greybus: simple fixes · 69f93abf
      Alex Elder authored
      A few silly little fixes.
          - Clear out some unnecessary #includes in "debugfs.c"
          - Drop some unneeded parentheses in hd_to_es1()
          - Use &hd->hd_priv in hd_to_es1() to emphasize we are working
            with an embedded array, not a pointer
          - Fix a comment in the header for ap_probe()
          - Drop a duplicate #include in "gpio-gb.c"
          - Fix a use-before-set problem in set_serial_info()
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      69f93abf
  3. 22 Sep, 2014 9 commits
  4. 20 Sep, 2014 2 commits
  5. 19 Sep, 2014 3 commits
  6. 14 Sep, 2014 8 commits
  7. 13 Sep, 2014 9 commits
  8. 11 Sep, 2014 3 commits
  9. 10 Sep, 2014 1 commit
    • Greg Kroah-Hartman's avatar
      greybus: pass appropriate type to create function · 3d545326
      Greg Kroah-Hartman authored
      Based on a patch from Alex Elder <elder@linaro.org>.
      
      Alex's original description:
      
      Every descriptor in a manifest is interpreted by greybus_new_module().
      We call a function to do initialization based on descriptor's type.
      
      Since we know the type of the descriptor at that point, we can pass
      to the called function the actual sub-type it needs (i.e., the union
      member associated with the type).  This allows those functions to
      be slightly simplified, and more focused.
      
      Also change some size variables to have size_t type, and simplify a
      few spots further by using sizeof(object) in place of sizeof(type).
      3d545326
  10. 09 Sep, 2014 1 commit
    • Alex Elder's avatar
      greybus: fix manifest parsing size bug · e82bef42
      Alex Elder authored
      The type-specific "create" routines that get called while parsing
      the descriptor entries in the module manifest assume the size they
      are provided is the size of their data portion only--not including
      the descriptor header.
      
      Compute this value in greybus_new_module(), and pass it to those
      functions rather than the full descriptor size.  Move a few
      declarations to the innermost block that uses them.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      e82bef42