Commit b077b7ee authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'pwm/for-6.7-rc1-fixes' of...

Merge tag 'pwm/for-6.7-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm

Pull pwm fixes from Thierry Reding:
 "This contains two very small fixes that I failed to include in the
  main pull request"

* tag 'pwm/for-6.7-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
  pwm: Fix double shift bug
  pwm: samsung: Fix a bit test in pwm_samsung_resume()
parents b712075e d27abbfd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -631,7 +631,7 @@ static int pwm_samsung_resume(struct device *dev)
		struct pwm_device *pwm = &chip->pwms[i];
		struct samsung_pwm_channel *chan = &our_chip->channel[i];

		if (!(pwm->flags & PWMF_REQUESTED))
		if (!test_bit(PWMF_REQUESTED, &pwm->flags))
			continue;

		if (our_chip->variant.output_mask & BIT(i))
+2 −2
Original line number Diff line number Diff line
@@ -41,8 +41,8 @@ struct pwm_args {
};

enum {
	PWMF_REQUESTED = 1 << 0,
	PWMF_EXPORTED = 1 << 1,
	PWMF_REQUESTED = 0,
	PWMF_EXPORTED = 1,
};

/*