From: Marcus Folkesson <marcus.folkesson@gmail.com>
To: Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: [PATCH v2] HID: hid-cmedia: use device managed resources
Date: Thu, 17 Nov 2022 13:17:00 +0100 [thread overview]
Message-ID: <Y3YmPA/TqAFQ4xwn@gmail.com> (raw)
In-Reply-To: <20221117121304.5516-1-marcus.folkesson@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 517 bytes --]
On Thu, Nov 17, 2022 at 01:13:04PM +0100, Marcus Folkesson wrote:
> When we do not need to free() any memory in .remove, we can remove
> cmhid_remove as well.
> hid_device_remove() will call hid_hw_stop() as default .remove function
> if no function is specified.
>
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
> ---
v2:
- return ret instead of 0 in probe.
> drivers/hid/hid-cmedia.c | 27 +++++----------------------
> 1 file changed, 5 insertions(+), 22 deletions(-)
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2022-11-17 12:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-17 12:13 [PATCH v2] HID: hid-cmedia: use device managed resources Marcus Folkesson
2022-11-17 12:17 ` Marcus Folkesson [this message]
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=Y3YmPA/TqAFQ4xwn@gmail.com \
--to=marcus.folkesson@gmail.com \
--cc=benjamin.tissoires@redhat.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).