diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2021-11-20 03:44:07 +0100 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2021-11-20 03:44:07 +0100 |
| commit | cc4dac3f5e3eff8d042b4d8712bed6f7ea75454c (patch) | |
| tree | fe3f2d3a9f5c20f90769748406ea69fc093f652b /include/linux/string_helpers.h | |
| parent | fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff) | |
| parent | f7c151d86487eec720f52843133bce270b07fecc (diff) | |
Merge tag 'intel-pinctrl-v5.17-2' of gitolite.kernel.org:pub/scm/linux/kernel/git/pinctrl/intel into devel
intel-pinctrl for v5.17-2
* Introduce new generic kasprintf_strarray() API
* Clean up and convert existing drivers to use the above
The API will be needed in the future for new comers, including Intel ones.
The following is an automated git shortlog grouped by driver:
armada-37xx:
- Switch to use devm_kasprintf_strarray()
- Convert to use dev_err_probe()
- Make use of the devm_platform_ioremap_resource()
- Use temporary variable for struct device
- Fix function name in the kernel doc
gpio:
- mockup: Switch to use kasprintf_strarray()
lib/string_helpers:
- Introduce managed variant of kasprintf_strarray()
- Introduce kasprintf_strarray()
pinctrl/rockchip:
- Switch to use devm_kasprintf_strarray()
- Convert to use dev_err_probe()
- Make use of the devm_platform_get_and_ioremap_resource()
- Use temporary variable for struct device
- Drop wrong kernel doc annotation
st:
- Switch to use devm_kasprintf_strarray()
- Convert to use dev_err_probe()
- Make use of the devm_platform_ioremap_resource_byname()
- Use temporary variable for struct device
- Drop wrong kernel doc annotations
zynqmp:
- Unify pin naming
Diffstat (limited to 'include/linux/string_helpers.h')
| -rw-r--r-- | include/linux/string_helpers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/string_helpers.h b/include/linux/string_helpers.h index 4ba39e1403b2..7a22921c9db7 100644 --- a/include/linux/string_helpers.h +++ b/include/linux/string_helpers.h @@ -7,6 +7,7 @@ #include <linux/string.h> #include <linux/types.h> +struct device; struct file; struct task_struct; @@ -100,6 +101,9 @@ char *kstrdup_quotable(const char *src, gfp_t gfp); char *kstrdup_quotable_cmdline(struct task_struct *task, gfp_t gfp); char *kstrdup_quotable_file(struct file *file, gfp_t gfp); +char **kasprintf_strarray(gfp_t gfp, const char *prefix, size_t n); void kfree_strarray(char **array, size_t n); +char **devm_kasprintf_strarray(struct device *dev, const char *prefix, size_t n); + #endif |
