linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Ogletree <jogletre@opensource.cirrus.com>
To: <jikos@kernel.org>, <bentiss@kernel.org>, <dmitry.torokhov@gmail.com>
Cc: <linux-input@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-usb@vger.kernel.org>, <patches@opensource.cirrus.com>,
	James Ogletree <jogletre@opensource.cirrus.com>
Subject: [RFC PATCH 4/6] Input: cs40l50 - Assign max concurrent playbacks
Date: Tue, 17 Sep 2024 22:14:10 +0000	[thread overview]
Message-ID: <20240917221412.1003718-5-jogletre@opensource.cirrus.com> (raw)
In-Reply-To: <20240917221412.1003718-1-jogletre@opensource.cirrus.com>

Explicitly assign the maximum number of simultaneously playable
effects.

Signed-off-by: James Ogletree <jogletre@opensource.cirrus.com>
---
 drivers/input/misc/cs40l50-vibra.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/input/misc/cs40l50-vibra.c b/drivers/input/misc/cs40l50-vibra.c
index 03bdb7c26ec0..733f2989183b 100644
--- a/drivers/input/misc/cs40l50-vibra.c
+++ b/drivers/input/misc/cs40l50-vibra.c
@@ -508,7 +508,7 @@ static int cs40l50_vibra_probe(struct platform_device *pdev)
 	input_set_capability(vib->input, EV_FF, FF_PERIODIC);
 	input_set_capability(vib->input, EV_FF, FF_CUSTOM);
 
-	error = input_ff_create(vib->input, CS40L50_EFFECTS_MAX);
+	error = input_ff_create(vib->input, FF_MAX_EFFECTS);
 	if (error) {
 		dev_err(vib->dev, "Failed to create input device\n");
 		return error;
@@ -517,6 +517,7 @@ static int cs40l50_vibra_probe(struct platform_device *pdev)
 	vib->input->ff->upload = cs40l50_add;
 	vib->input->ff->playback = cs40l50_playback;
 	vib->input->ff->erase = cs40l50_erase;
+	vib->input->ff->max_concurrent_playbacks = CS40L50_EFFECTS_MAX;
 
 	INIT_LIST_HEAD(&vib->effect_head);
 
-- 
2.43.0


  parent reply	other threads:[~2024-09-17 22:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-17 22:14 [RFC PATCH 0/6] Separate notions of max concurrent playbacks and James Ogletree
2024-09-17 22:14 ` [RFC PATCH 1/6] Input: Add variable to track maximum concurrent playbacks James Ogletree
2024-09-17 22:14 ` [RFC PATCH 2/6] HID: logitech-hidpp: Assign max " James Ogletree
2024-09-17 22:14 ` [RFC PATCH 3/6] HID: pidff: " James Ogletree
2024-09-17 22:14 ` James Ogletree [this message]
2024-09-17 22:14 ` [RFC PATCH 5/6] Input: da7280 - " James Ogletree
2024-09-17 22:14 ` [RFC PATCH 6/6] Input: uinput " James Ogletree
  -- strict thread matches above, loose matches on Subject: below --
2024-10-09 15:40 [RFC PATCH 0/6] Separate notions of max concurrent playbacks and James Ogletree
2024-10-09 15:40 ` [RFC PATCH 4/6] Input: cs40l50 - Assign max concurrent playbacks James Ogletree

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=20240917221412.1003718-5-jogletre@opensource.cirrus.com \
    --to=jogletre@opensource.cirrus.com \
    --cc=bentiss@kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    /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;
as well as URLs for NNTP newsgroup(s).