1. 07 May, 2015 3 commits
    • Alex Elder's avatar
      greybus: eliminate extra response flag definitions · 6d653370
      Alex Elder authored
      All protocols use the same value to distinguish between request and
      response message types.  This is a requirement.
      
      Use GB_MESSAGE_TYPE_RESPONSE rather than GB_OPERATION_TYPE_RESPONSE
      for the name of the flag used to distiguish between request and
      response messages.
      
      Get rid of the redundant response flag definitions that are
      associated with specific protocols.
      
      Describe the symbolic values as "operation types" rather than
      "message types" where they are defined.  The message type for a
      request is the same as the operation type; the message type for a
      response is the operation type OR'd with GB_MESSAGE_TYPE_RESPONSE.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      6d653370
    • Alex Elder's avatar
      greybus: battery: use feature tag rather than kernel version · 5c58640d
      Alex Elder authored
      Conditionally define a new symbol DRIVER_OWNS_PSY_STRUCT, which is
      set in "kernel_ver.h" based on on the kernel version.  Use it to
      distinguish code used for kernels that differ in whether a power
      supply structure is owned by the driver, or by the power supply
      core.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      5c58640d
    • Alex Elder's avatar
      greybus: battery: free struct on error in caller · 9ade6d31
      Alex Elder authored
      When a battery connection is initialized, a gb_battery structure for
      it is allocated in gb_battery_connection_init().  Currently that
      function ends by calling init_and_register(); in the event an error
      occurs, init_and_register() is responsible for freeing the allocated
      gb_battery structure.
      
      Make the code a bit better balanced by having the function that
      allocates the structure be responsible for freeing it in case of
      error.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      9ade6d31
  2. 05 May, 2015 7 commits
  3. 01 May, 2015 6 commits
  4. 29 Apr, 2015 5 commits
  5. 17 Apr, 2015 2 commits
  6. 16 Apr, 2015 1 commit
  7. 10 Apr, 2015 3 commits
  8. 09 Apr, 2015 6 commits
  9. 07 Apr, 2015 7 commits