From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752149AbcG2GHp (ORCPT ); Fri, 29 Jul 2016 02:07:45 -0400 Received: from cit-hm8-mail01.bmw-carit.de ([212.118.206.84]:38266 "EHLO cit-hm8-gw01.bmw-carit.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751365AbcG2GHn (ORCPT ); Fri, 29 Jul 2016 02:07:43 -0400 X-CTCH-RefID: str=0001.0A0C0201.579AF2A7.01A2,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Subject: Re: [RFC v0 3/8] firmware: Factor out firmware load helpers To: Dan Williams , Daniel Wagner , Bastien Nocera , Bjorn Andersson , Dmitry Torokhov , Greg Kroah-Hartman , Johannes Berg , Kalle Valo , Ohad Ben-Cohen References: <1469692512-16863-1-git-send-email-wagi@monom.org> <1469692512-16863-4-git-send-email-wagi@monom.org> <1469718061.3013.18.camel@redhat.com> CC: , , , From: Daniel Wagner Message-ID: <6361319e-ffaa-4333-6aba-4829a1953c7f@bmw-carit.de> Date: Fri, 29 Jul 2016 08:07:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <1469718061.3013.18.camel@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.10.50.67] X-ClientProxiedBy: CIT-HM8-EX01.bmw-carit.intra (10.40.100.13) To CIT-HM8-EX01.bmw-carit.intra (10.40.100.13) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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