[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6361319e-ffaa-4333-6aba-4829a1953c7f@bmw-carit.de>
Date: Fri, 29 Jul 2016 08:07:33 +0200
From: Daniel Wagner <daniel.wagner@...-carit.de>
To: Dan Williams <dcbw@...hat.com>, Daniel Wagner <wagi@...om.org>,
Bastien Nocera <hadess@...ess.net>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Johannes Berg <johannes.berg@...el.com>,
Kalle Valo <kvalo@...eaurora.org>,
Ohad Ben-Cohen <ohad@...ery.com>
CC: <linux-input@...r.kernel.org>, <linux-kselftest@...r.kernel.org>,
<linux-wireless@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [RFC v0 3/8] firmware: Factor out firmware load helpers
> It's somewhat odd to me that the structure is "firmware_stat" but most
> of the functions are "fw_loading_*". That seems inconsistent for a
> structure that is (currently) only used by these functions.
I agree, my proposal is odd.
> I would personally do either:
>
> a) "struct fw_load_status" and "fw_load_*()"
>
> or
>
> b) "struct firmware_load_stat" and "firmware_load_*()"
>
> I'd also change the function names from "loading" -> "load", similar to
> how userland has read(2), not reading(2).
a) sounds good to me, because fw_load_ should be long enough prefix.
cheers,
daniel
Powered by blists - more mailing lists