Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2606183ybl; Mon, 19 Aug 2019 04:56:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqynph1aHK4S0EvGeeMLY3r38BOWIYJp1aBWxBO9q7wv4jz6kSx2sFLr1b1obMG/RMgCbPOb X-Received: by 2002:a17:902:9688:: with SMTP id n8mr21508117plp.227.1566215806227; Mon, 19 Aug 2019 04:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566215806; cv=none; d=google.com; s=arc-20160816; b=VYnsn9WK2ASvAQ99x92hPfxCmBIp1cV7vWAJBt1ojXIMakcpjo3IR40MukM6azYuTw WIVjXDql1ppMaSseNon9YYGnl70xHEsgM/3rUHxwgbNBXAfmMu6y2yKIEEd92oZFUc/R axcGEcrQSMA5LQsVBU+OUwKBtQz0cPURuTzNJxtUtTT7aZUjlTom2fEFHvK1yHV0fWVd TMR04cGDhkajV4TZ6X/10IokqzOmn0ClME+Cyk4U5mbpb1WUnGbw5F+4ghEmDWdZQBN7 L2a5ECApHDtVnfFpxrLRJuDCZKiN7Ok/IR4uCd299rxsc6MEGC9aMtKP5pkD2Z7Yc30a o3sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=Cev617Oqczd4+BI45scISc9S8Tf5s93c7ZJ5penDfrs=; b=WIg9wWqghewT0rxz71amXFGUXNbBvQdOQq/57mrCWvuGDhAeVmYUQQs0L4mRqcb3Tl /QrVi6zl0swaJC20rTQMz7iuPJut8rUzX1sMPlMVzlEuh93rZaS2YigpEbt3SniGkBen MZDdrE+WHQh3aM7MCt7BdMgWlh8udWVWYInCBwdRnB1N8dbc617fRBfkFLe0A1N6mE8J 5k0BxPVWVlZq3M/vyU/xnminhOy3twAiynHqKDQqGYLIpXKD7yunUUF2hkovhrabHaGg 0EEZNTqAxk8+zr4YhoAIdLVqvkieAkpI8lp9CHDluk1VH4weCQ+9/BeLTh/HlwkSQxee d+JQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u27si9791395pgn.231.2019.08.19.04.56.30; Mon, 19 Aug 2019 04:56:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727419AbfHSLy4 (ORCPT + 99 others); Mon, 19 Aug 2019 07:54:56 -0400 Received: from ns.iliad.fr ([212.27.33.1]:51136 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbfHSLy4 (ORCPT ); Mon, 19 Aug 2019 07:54:56 -0400 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 93E2020455; Mon, 19 Aug 2019 13:54:53 +0200 (CEST) Received: from [192.168.108.37] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id 7B9781FF27; Mon, 19 Aug 2019 13:54:53 +0200 (CEST) Subject: Re: [PATCH v4] media: si2168: Refactor command setup code From: Marc Gonzalez To: Antti Palosaari , Mauro Carvalho Chehab , Sean Young , Brad Love Cc: linux-media , LKML , =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= References: <06171488-7530-d4e4-1b94-f82905ed383d@free.fr> Message-ID: <499bea86-f483-f776-4512-510c5df9d78f@free.fr> Date: Mon, 19 Aug 2019 13:54:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <06171488-7530-d4e4-1b94-f82905ed383d@free.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Mon Aug 19 13:54:53 2019 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/07/2019 11:50, Marc Gonzalez wrote: > Use cmd_init() to fill a struct si2168_cmd command. > > Signed-off-by: Marc Gonzalez > --- > Changes from v1: > - Use a real function to populate struct si2168_cmd *cmd, and a trivial > macro wrapping it (macro because sizeof). > Changes from v2: > - Fix header mess > - Add Jonathan's tag > Changes from v3: > - Drop Jonathan's tag after rewrite > - Completely drop macro, and explicitly provide 'wlen' argument > --- > drivers/media/dvb-frontends/si2168.c | 152 ++++++++------------------- > 1 file changed, 44 insertions(+), 108 deletions(-) Brad, Sean, Antti, I believe this patch is good to go. Is anything still wrong with it? Regards.