1. 29 8月, 2017 6 次提交
  2. 13 8月, 2017 1 次提交
  3. 12 8月, 2017 3 次提交
  4. 09 8月, 2017 2 次提交
    • H
      power: supply: Fix power_supply_am_i_supplied to return -ENODEV when apropriate · 46cecd13
      Hans de Goede 提交于
      Commit 2848e039 ("power: supply: Make power_supply_am_i_supplied return
      -ENODEV if there are no suppliers") was supposed to make
      power_supply_am_i_supplied() return -ENODEV when there are no supplies
      which supply the supply passed to it.
      
      But instead it will only return -ENODEV when there are no supplies at
      all as data->count++; is incremented on every call of the iterator, rather
      then only when __power_supply_is_supplied_by returns true. This commit
      fixes this.
      
      Fixes: 2848e039 ("power: supply: Make power_supply_am_i_supplied ...")
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.co.uk>
      46cecd13
    • B
      power: supply: add const to bin_attribute structures · 16ac345b
      Bhumika Goyal 提交于
      Add const to bin_attribute structures as they are only passed to the
      functions sysfs_{remove/create}_bin_file or
      device_{remove/create}_bin_file. The corresponding parameters
      passed are of type const, so declare the structures to be const.
      
      Done using Coccinelle:
      
      @m disable optional_qualifier@
      identifier s;
      position p;
      @@
      static struct bin_attribute s@p={...};
      
      @okay1@
      position p;
      identifier m.s;
      @@
      (
      sysfs_create_bin_file(...,&s@p,...)
      |
      sysfs_remove_bin_file(...,&s@p,...)
      )
      
      @bad@
      position p!={m.p,okay1.p};
      identifier m.s;
      @@
      s@p
      
      @change depends on !bad disable optional_qualifier@
      identifier m.s;
      @@
      static
      +const
      struct bin_attribute s={...};
      
      Same script was modified for device_{create/remove}_bin_file functions.
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.co.uk>
      16ac345b
  5. 25 7月, 2017 10 次提交
  6. 24 7月, 2017 10 次提交
  7. 23 7月, 2017 6 次提交
  8. 22 7月, 2017 2 次提交
    • L
      Merge tag 'char-misc-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · dedaff2f
      Linus Torvalds 提交于
      Pull char/misc driver fixes from Greg KH:
       "Here are some small char and misc driver fixes for 4.13-rc2. All fix
        reported problems with 4.13-rc1 or older kernels (like the binder
        fixes). Full details in the shortlog.
      
        All have been in linux-next with no reported issues"
      
      * tag 'char-misc-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        w1: omap-hdq: fix error return code in omap_hdq_probe()
        regmap: regmap-w1: Fix build troubles
        w1: Fix slave count on 1-Wire bus (resend)
        mux: mux-core: unregister mux_class in mux_exit()
        mux: remove the Kconfig question for the subsystem
        nvmem: rockchip-efuse: amend compatible rk322x-efuse to rk3228-efuse
        drivers/fsi: fix fsi_slave_mode prototype
        fsi: core: register with postcore_initcall
        thunderbolt: Correct access permissions for active NVM contents
        vmbus: re-enable channel tasklet
        spmi: pmic-arb: Always allocate ppid_to_apid table
        MAINTAINERS: Add entry for SPMI subsystem
        spmi: Include OF based modalias in device uevent
        binder: Use wake up hint for synchronous transactions.
        binder: use group leader instead of open thread
        Revert "android: binder: Sanity check at binder ioctl"
      dedaff2f
    • L
      Merge tag 'usb-4.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 55fd939e
      Linus Torvalds 提交于
      Pull USB fixes from Greg KH:
       "Here are some small USB fixes for 4.13-rc2.
      
        The usual batch, gadget fixes for reported issues, as well as xhci
        fixes, and a small random collection of other fixes for reported
        issues.
      
        All have been in linux-next with no reported issues"
      
      * tag 'usb-4.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (25 commits)
        xhci: fix memleak in xhci_run()
        usb: xhci: fix spinlock recursion for USB2 test mode
        xhci: fix 20000ms port resume timeout
        usb: xhci: Issue stop EP command only when the EP state is running
        xhci: Bad Ethernet performance plugged in ASM1042A host
        xhci: Fix NULL pointer dereference when cleaning up streams for removed host
        usb: renesas_usbhs: gadget: disable all eps when the driver stops
        usb: renesas_usbhs: fix usbhsc_resume() for !USBHSF_RUNTIME_PWCTRL
        usb: gadget: udc: renesas_usb3: protect usb3_ep->started in usb3_start_pipen()
        usb: gadget: udc: renesas_usb3: fix zlp transfer by the dmac
        usb: gadget: udc: renesas_usb3: fix free size in renesas_usb3_dma_free_prd()
        usb: gadget: f_uac2: endianness fixes.
        usb: gadget: f_uac1: endianness fixes.
        include: usb: audio: specify exact endiannes of descriptors
        usb: gadget: udc: start_udc() can be static
        usb: dwc2: gadget: On USB RESET reset device address to zero
        usb: storage: return on error to avoid a null pointer dereference
        usb: typec: include linux/device.h in ucsi.h
        USB: cdc-acm: add device-id for quirky printer
        usb: dwc3: gadget: only unmap requests from DMA if mapped
        ...
      55fd939e