From: ben.hutchings@codethink.co.uk (Ben Hutchings)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [PATCH 6/8] pwm: pca9685: Allow any of the 16 PWMs to be used as a GPIO
Date: Thu, 14 Sep 2017 16:55:13 +0100 [thread overview]
Message-ID: <1505404513.1807.52.camel@codethink.co.uk> (raw)
In-Reply-To: <5073132a570210d4f5c2790ccae6e18d285dfcca.1504119155.git.jan.kiszka@siemens.com>
On Wed, 2017-08-30 at 20:52 +0200, Jan Kiszka wrote:
> From: Mika Westerberg <mika.westerberg@linux.intel.com>
>
> commit bccec89f0a35f65302734d1cdb01479df0f33ac9 upstream.
[...]
> @@ -87,6 +93,151 @@ static inline struct pca9685 *to_pca(struct pwm_chip *chip)
> return container_of(chip, struct pca9685, chip);
> }
>
> +#if IS_ENABLED(CONFIG_GPIOLIB)
> +static int pca9685_pwm_gpio_request(struct gpio_chip *gpio, unsigned int offset)
> +{
> + struct pca9685 *pca = gpiochip_get_data(gpio);
[...]
gpiochip_get_data() doesn't exist in 4.4.
I've cherry-picked commits b08ea35a3296 "gpio: add a data pointer to
gpio_chip", 0cf3292cde22 "gpio: Add devm_ apis for gpiochip_add_data and
gpiochip_remove", and 3988d663c02f "gpiolib: Fix a WARN_ON that can
never trigger" before this. But you should have included them in this
patch series.
Ben.
--
Ben Hutchings
Software Developer, Codethink Ltd.
next prev parent reply other threads:[~2017-09-14 15:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-30 18:52 [cip-dev] [PATCH 0/8] Basic support for IOT2000 devices Jan Kiszka
2017-08-30 18:52 ` [cip-dev] [PATCH 1/8] stmmac: Add support for SIMATIC IOT2000 platform Jan Kiszka
2017-08-30 18:52 ` [cip-dev] [PATCH 2/8] iio: core: implement iio_device_{claim|release}_direct_mode() Jan Kiszka
2017-08-30 18:52 ` [cip-dev] [PATCH 3/8] iio: adc: Add support for TI ADC108S102 and ADC128S102 Jan Kiszka
2017-08-30 18:52 ` [cip-dev] [PATCH 4/8] mfd: intel_quark_i2c_gpio: Use dmi_system_id table for retrieving frequency Jan Kiszka
2017-08-30 18:52 ` [cip-dev] [PATCH 5/8] mfd: intel_quark_i2c_gpio: Add support for SIMATIC IOT2000 platform Jan Kiszka
2017-08-30 18:52 ` [cip-dev] [PATCH 6/8] pwm: pca9685: Allow any of the 16 PWMs to be used as a GPIO Jan Kiszka
2017-09-14 15:55 ` Ben Hutchings [this message]
2017-08-30 18:52 ` [cip-dev] [PATCH 7/8] pwm: pca9685: Fix GPIO-only operation Jan Kiszka
2017-08-30 18:52 ` [cip-dev] [PATCH 8/8] gpio: pca953x: add PCAL9535 interrupt support for Galileo Gen2 Jan Kiszka
2017-09-14 15:55 ` [cip-dev] [PATCH 0/8] Basic support for IOT2000 devices Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1505404513.1807.52.camel@codethink.co.uk \
--to=ben.hutchings@codethink.co.uk \
--cc=cip-dev@lists.cip-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox