aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/core.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-30pwm: Don't check pointer for being non-NULL after useUwe Kleine-König1-1/+3
2024-04-26pwm: Add a struct device to struct pwm_chipUwe Kleine-König1-42/+51
2024-04-26pwm: Ensure a struct pwm has the same lifetime as its pwm_chipUwe Kleine-König1-17/+10
2024-04-26pwm: Move contents of sysfs.c into core.cUwe Kleine-König1-6/+534
2024-04-26pwm: Ensure that pwm_chips are allocated using pwmchip_alloc()Uwe Kleine-König1-0/+10
2024-03-29pwm: Fix setting period with #pwm-cells = <1> and of_pwm_single_xlate()Uwe Kleine-König1-1/+1
2024-02-15pwm: Provide pwmchip_alloc() function and a devm variant of itUwe Kleine-König1-0/+58
2024-02-15pwm: Provide an inline function to get the parent device of a given chipUwe Kleine-König1-21/+21
2024-02-15pwm: Reorder symbols in core.cUwe Kleine-König1-309/+310
2024-02-15pwm: Drop duplicate check against chip->npwm in of_pwm_xlate_with_flags()Uwe Kleine-König1-3/+0
2024-02-15pwm: Let the of_xlate callbacks accept references without periodUwe Kleine-König1-11/+9
2024-02-15pwm: Drop useless member .of_pwm_n_cells of struct pwm_chipUwe Kleine-König1-19/+3
2024-01-12pwm: Fix out-of-bounds access in of_pwm_single_xlate()Uwe Kleine-König1-1/+1
2023-12-20pwm: Reduce number of pointer dereferences in pwm_device_request()Uwe Kleine-König1-6/+8
2023-12-20pwm: Make it possible to apply PWM changes in atomic contextSean Young1-11/+51
2023-12-20pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()Sean Young1-9/+9
2023-12-20pwm: Narrow scope of struct pwm_device pointerUwe Kleine-König1-3/+2
2023-12-20pwm: Mention PWM chip ID in /sys/kernel/debug/pwmUwe Kleine-König1-1/+2
2023-12-20pwm: Replace PWM chip unique base by unique IDUwe Kleine-König1-42/+25
2023-12-20pwm: Drop unused member "pwm" from struct pwm_deviceUwe Kleine-König1-1/+0
2023-10-13pwm: Drop pwm_[sg]et_chip_data()Uwe Kleine-König1-31/+0
2023-10-13pwm: Manage owner assignment implicitly for driversUwe Kleine-König1-10/+14
2023-07-28pwm: Fix order of freeing resources in pwmchip_remove()Uwe Kleine-König1-3/+3
2023-07-28pwm: Drop unused #include <linux/radix-tree.h>Uwe Kleine-König1-1/+0
2023-07-28pwm: Remove outdated documentation for pwmchip_remove()Uwe Kleine-König1-4/+1
2023-07-24pwm: Explicitly include correct DT includesRob Herring1-0/+1
2023-07-20pwm: Use a consistent name for pwm_chip pointers in the coreUwe Kleine-König1-14/+14
2023-04-14pwm: Remove unused radix treeThierry Reding1-12/+1
2023-04-13pwm: Delete deprecated functions pwm_request() and pwm_free()Uwe Kleine-König1-56/+2
2023-03-23pwm: Zero-initialize the pwm_state passed to driver's .get_state()Uwe Kleine-König1-2/+10
2022-12-06pwm: Handle .get_state() failuresUwe Kleine-König1-2/+12
2022-12-06pwm/tracing: Also record trace events for failed API callsUwe Kleine-König1-10/+8
2022-12-06pwm: core: Remove S_IFREG from debugfs_create_file()Andy Shevchenko1-2/+1
2022-12-06pwm: Don't initialize list head before calling list_add()Uwe Kleine-König1-1/+0
2022-12-06pwm: Mark free pwm IDs as used in alloc_pwms()Uwe Kleine-König1-2/+2
2022-12-06pwm: Reduce time the pwm_lock mutex is held in pwmchip_add()Uwe Kleine-König1-15/+12
2022-12-06pwm: Document variables protected by pwm_lockUwe Kleine-König1-0/+5
2022-10-07Merge tag 'pwm/for-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+1
2022-09-28pwm: core: Replace custom implementation of device_match_fwnode()Andy Shevchenko1-1/+1
2022-09-19pwm: core: Make of_pwm_get() staticAndy Shevchenko1-3/+2
2022-09-19pwm: core: Get rid of unused devm_of_pwm_get()Andy Shevchenko1-30/+0
2022-06-22pwm: Drop support for legacy driversUwe Kleine-König1-81/+1
2022-01-20Merge tag 'pwm/for-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-60/+79
2021-11-18Merge drm/drm-next into drm-misc-nextThomas Zimmermann1-0/+9
2021-11-17pwm: Restore initial state if a legacy callback failsUwe Kleine-König1-6/+8
2021-11-17pwm: Prevent a glitch for legacy driversUwe Kleine-König1-17/+24
2021-11-17pwm: Move legacy driver handling into a dedicated functionUwe Kleine-König1-60/+70
2021-11-05pwm: Make it explicit that pwm_apply_state() might sleepUwe Kleine-König1-0/+9
2021-10-27pwm: Introduce single-PWM of_xlate functionBjorn Andersson1-0/+26
2021-09-02pwm: Make pwmchip_remove() return voidUwe Kleine-König1-3/+1
2021-07-07pwm: Remove redundant assignment to pointer pwmColin Ian King1-1/+1
2021-06-30pwm: core: Simplify some devm_*pwm*() functionsAndy Shevchenko1-35/+25
2021-06-30pwm: core: Remove unused devm_pwm_put()Andy Shevchenko1-25/+0
2021-06-30pwm: core: Unify fwnode checks in the moduleAndy Shevchenko1-6/+7
2021-06-30pwm: core: Reuse fwnode_to_pwmchip() in ACPI caseAndy Shevchenko1-30/+1
2021-06-30pwm: core: Convert to use fwnode for matchingAndy Shevchenko1-3/+3
2021-06-28pwm: Drop irrelevant error path from pwmchip_remove()Uwe Kleine-König1-14/+2
2021-06-28pwm: Add a device-managed function to add PWM chipsUwe Kleine-König1-0/+19
2021-06-04pwm: core: Support new usage_power setting in PWM stateClemens Gruber1-1/+5
2021-05-25pwm: Autodetect default value for of_pwm_n_cells from device treeUwe Kleine-König1-1/+7
2021-05-25pwm: Drop of_pwm_simple_xlate() in favour of of_pwm_xlate_with_flags()Uwe Kleine-König1-26/+1
2021-05-25pwm: Make of_pwm_xlate_with_flags() work with #pwm-cells = <2>Uwe Kleine-König1-4/+5
2021-03-22pwm: Drop function pwmchip_add_with_polarity()Uwe Kleine-König1-22/+3
2021-03-22pwm: Return -EINVAL for old-style drivers without .set_polarity callbackUwe Kleine-König1-1/+1
2021-03-22pwm: Always allocate PWM chip base ID dynamicallyUwe Kleine-König1-18/+7
2020-12-17pwm: core: Use octal permissionSoham Biswas1-1/+1
2020-09-24pwm: Convert to use DEFINE_SEQ_ATTRIBUTE macroLiu Shixin1-14/+3
2020-06-17pwm: Convert period and duty cycle to u64Guru Das Srinagesh1-7/+7
2020-06-04pwm: Add missing "CONFIG_" prefixKees Cook1-1/+1
2020-04-14pwm: Add missing '\n' in log messagesChristophe JAILLET1-1/+1
2020-04-03pwm: Make pwm_apply_state_debug() staticJason Yan1-2/+2
2020-03-30pwm: Implement some checks for lowlevel driversUwe Kleine-König1-7/+128
2020-01-20pwm: Implement tracing for .get_state() and .apply_state()Uwe Kleine-König1-1/+8
2019-12-09pwm: Read initial hardware state at request timeThierry Reding1-3/+3
2019-10-21Revert "pwm: Let pwm_get_state() return the last implemented state"Thierry Reding1-8/+1
2019-09-21pwm: Ensure pwm_apply_state() doesn't modify the state argumentUwe Kleine-König1-4/+2
2019-09-21pwm: Let pwm_get_state() return the last implemented stateUwe Kleine-König1-1/+8
2019-09-21pwm: Introduce local struct pwm_chip in pwm_apply_state()Uwe Kleine-König1-11/+14
2019-08-08pwm: Fallback to the static lookup-list when acpi_pwm_get failsHans de Goede1-2/+5
2019-07-09Merge tag 'pwm/for-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-3/+169
2019-06-26pwm: Add support referencing PWMs from ACPINikolaus Voss1-0/+122
2019-06-25pwm: Add consumer device linkFabrice Gasnier1-3/+47
2019-05-21treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 18Thomas Gleixner1-14/+1
2019-05-09pwm: Clear chip_data in pwm_put()Uwe Kleine-König1-0/+1
2019-03-20pwm: Fix deadlock warning when removing PWM devicePhong Hoang1-5/+5
2019-01-10pwm: Drop per-chip dbg_show callbackUwe Kleine-König1-4/+1
2019-01-10pwm: Don't use memcmp() to compare state variablesUwe Kleine-König1-1/+4
2017-07-06pwm: Silently error out on EPROBE_DEFERJerome Brunet1-1/+3
2017-01-30pwm: Try to load modules during pwm_get()Hans de Goede1-0/+14
2017-01-30pwm: Don't hold pwm_lookup_lock longer than necessaryHans de Goede1-10/+8
2017-01-30pwm: Make the PWM_POLARITY flag in DTB optionalLothar Wassmann1-10/+12
2017-01-30pwm: Print error messages with pr_err() instead of pr_debug()Lothar Wassmann1-2/+2
2017-01-04pwm: Remove pwm_can_sleep()Thierry Reding1-12/+0
2016-09-05pwm: Unexport children before chip removalDavid Hsu1-0/+2
2016-07-25Merge branch 'for-4.8/capture' into for-nextThierry Reding1-0/+27
2016-06-10pwm: Add PWM capture supportLee Jones1-0/+27
2016-06-10pwm: Improve args checking in pwm_apply_state()Brian Norris1-1/+2
2016-05-17Merge branch 'for-4.7/pwm-atomic' into for-nextThierry Reding1-90/+132
2016-05-17Merge branch 'for-4.7/pwm-args' into for-nextThierry Reding1-6/+20
2016-05-17pwm: Add information about polarity, duty cycle and period to debugfsHeiko Stübner1-0/+5
2016-05-17pwm: Switch to the atomic APIBoris Brezillon1-1/+4
2016-05-17pwm: Add core infrastructure to allow atomic updatesBoris Brezillon1-68/+119
2016-05-17pwm: Add hardware readout infrastructureBoris Brezillon1-0/+3
2016-05-17pwm: Move the enabled/disabled info into pwm_stateBoris Brezillon1-4/+9
2016-05-17pwm: Introduce the pwm_state conceptBoris Brezillon1-4/+4
2016-05-17pwm: Keep PWM state in sync with hardware stateBoris Brezillon1-14/+0
2016-05-17pwm: Get rid of pwm->lockBoris BREZILLON1-15/+4
2016-05-17pwm: Fix pwm_apply_args() call sitesBoris Brezillon1-10/+17
2016-05-03pwm: Use kcalloc() instead of kzalloc()Thierry Reding1-1/+1
2016-05-03pwm: Add missing newlineThierry Reding1-0/+1
2016-05-03pwm: Introduce the pwm_args conceptBoris Brezillon1-7/+14
2016-01-21pwm: Mark all devices as "might sleep"Thierry Reding1-1/+1
2015-11-10pwm: Return -ENODEV if no PWM lookup match is foundThierry Reding1-1/+3
2015-11-10pwm: Set enable state properly on failed call to enableJonathan Richardson1-7/+26
2015-08-17pwm: Clean up kerneldocThierry Reding1-6/+38
2015-08-17pwm: Remove useless whitespaceThierry Reding1-1/+0
2015-07-20pwm: Add the pwm_is_enabled() helperBoris Brezillon1-2/+2
2015-06-12pwm: Add pwmchip_add_with_polarity() APITim Kryger1-3/+20
2015-05-06pwm: Add support to remove registered consumer lookup tablesShobhit Kumar1-0/+17
2015-04-23pwm: Remove __init initializer for pwm_add_table()Shobhit Kumar1-1/+1
2015-02-03pwm: Remove unnecessary check before of_node_put()Markus Elfring1-1/+1
2014-08-29pwm: Fix uninitialized warnings in pwm_get()Geert Uytterhoeven1-15/+14
2014-08-25pwm: Fix possible ZERO_SIZE_PTR pointer dereferencing error.Xiubo Li1-1/+1
2014-08-18pwm: Fix period and polarity in pwm_get() for non-perfect matchesGeert Uytterhoeven1-2/+6
2014-05-21pwm: add period and polarity to struct pwm_lookupAlexandre Belloni1-1/+7
2013-12-20pwm: use seq_puts() instead of seq_printf()Jingoo Han1-3/+3
2013-09-03pwm: Use the DT macro directly when parsing PWM DT flagsLaurent Pinchart1-4/+3
2013-06-21pwm: Add sysfs interfaceH Hartley Sweeten1-2/+23
2013-06-10pwm: devm: alloc correct pointer sizeWolfram Sang1-2/+2
2013-02-26Merge tag 'for-3.9-rc1' of git://gitorious.org/linux-pwm/linux-pwmLinus Torvalds1-0/+14
2013-02-01pwm: Add devm_of_pwm_get() as exported API for usersPeter Ujfalusi1-0/+30
2013-02-01pwm: core: Rename of_pwm_request() to of_pwm_get() and export itPeter Ujfalusi1-4/+4
2013-01-30pwm: Export pwm_{set,get}_chip_data()Thierry Reding1-0/+2
2013-01-30pwm: Add pwm_can_sleep() as exported API to usersFlorian Vaussard1-0/+12
2012-12-06pwm: Export of_pwm_xlate_with_flags()Thierry Reding1-0/+1
2012-11-22pwm: Device tree support for PWM polarityPhilip, Avinash1-0/+28
2012-10-05pwm: Check for negative duty-cycle and periodThierry Reding1-1/+1
2012-09-10pwm: add devm_pwm_get() and devm_pwm_put()Alexandre Courbot1-0/+58
2012-09-10pwm: Add support for configuring the PWM polarityPhilip, Avinash1-0/+22
2012-08-17pwm: core: Fix coding style issuesSachin Kamat1-4/+4
2012-08-17pwm: Add missing static storage class specifiers in core.c fileSachin Kamat1-2/+2
2012-07-23pwm: fix used-uninitialized warning in pwm_get()Thierry Reding1-1/+1
2012-06-15pwm: Add device tree supportThierry Reding1-2/+146
2012-06-15pwm: Add table-based lookup for static mappingsThierry Reding1-15/+154
2012-06-15pwm: Add debugfs interfaceThierry Reding1-0/+90
2012-06-15pwm: Allow chips to support multiple PWMsThierry Reding1-77/+190
2012-06-15pwm: Add PWM framework supportSascha Hauer1-0/+227