Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5450941pxb; Wed, 26 Jan 2022 12:15:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDiaSMTOWdQCtaEAjyCiqacQsSNUirI+OtRLkBK6rSEO2QfMJi2NKKaBqOHrY7Xsnn0Fx+ X-Received: by 2002:a05:6a00:1508:: with SMTP id q8mr7394pfu.3.1643228158262; Wed, 26 Jan 2022 12:15:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643228158; cv=none; d=google.com; s=arc-20160816; b=fYG645A56S/hp7OHpnAgUtzWt3A/ViSQQNDoa5R+LoTFms6HTIV9IkzmXS+G8mHbdu eNoihd/1TawRvAmSuBRh7LQ2FgdZkjAjK6kmAy5INxOjLYTs/sdZjTJJATcndg1Y18gn RLNIBfWeLsOgAE86NOibmFeH4lqymN1/FhRgEDp+3iwFePqo2phDS9ngyzrAJqLDBCl7 mg6hEPh8FPDuvPWepmpD1iTHvmWCrUt2SSSuW4J4OaXO0udPYiKqG9keRsknkVppK/Bl fGRLZL4+9xjI3qtaiSXcOF7h9IGYGl7Npykn7M4cq0Pxxchdc5WLcT+txa4W1AB+5Tlp d4uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=50JRhj8xCHSINhFVtiOpyz+7LBIPM7mTDYfmvY3z2Ac=; b=W6xKdc2AOIqU39qUobyf5CEZ8uP5nbDBKrA9hEIabpExJzXXjLqUDLir8EHlAlL2tH PPIyFbc6hefn6Pgb8UDty2eSXhokcm+TALrgNssSEiCGb6aOXy8410Em3R4HsTCXhrk3 b8G5JssJED5LJCcyyVIT2RQNwGnuJIvFpWGEhQGvdt+p+GDm7GkEHy14RnljU7LxS8cU DNyj01GTIC7fvWQfZCZDx4WP6sfTPUMvaWjB6AMQCNBrbsb5YjLyoKDq8UixA6p35x+M Qr4Mfxf4oh1LDb9OWh2FOXtknti7ILyIGx/8DO0Sq03yRys5Mx81nmRGUnNwZfKPWDE1 QfVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=AsnH4Mll; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si188953pfd.342.2022.01.26.12.15.44; Wed, 26 Jan 2022 12:15:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=AsnH4Mll; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237611AbiAZHIx (ORCPT + 99 others); Wed, 26 Jan 2022 02:08:53 -0500 Received: from out0.migadu.com ([94.23.1.103]:35712 "EHLO out0.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233595AbiAZHIw (ORCPT ); Wed, 26 Jan 2022 02:08:52 -0500 Date: Wed, 26 Jan 2022 08:08:48 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1643180930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=50JRhj8xCHSINhFVtiOpyz+7LBIPM7mTDYfmvY3z2Ac=; b=AsnH4MllKFzskTP0jOJLUk3M/KhBDtMc9M1LgK75vHLG4kPlcc8eu6TK2m3KQKnSbCr2vo cSPoUGYrxeIeUUNQLjMe/GDc4LJc+KqZbEkg67m+sonr8RXsjGE6zY4Ny5zASoA/Ki0flu FZJ6xcGRWsyoUV75jGN0tC0HIT+rhoo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Richard Leitner To: Tommaso Merciai Cc: Richard Leitner - SKIDATA , "linuxfancy@googlegroups.com" , Greg Kroah-Hartman , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] usb: usb251xb: add boost-up property support Message-ID: References: <20220121232612.7283-1-tomm.merciai@gmail.com> <20220125214245.GA4196@tom-ThinkPad-T470p> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220125214245.GA4196@tom-ThinkPad-T470p> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 10:42:45PM +0100, Tommaso Merciai wrote: > On Mon, Jan 24, 2022 at 07:03:57AM +0000, Richard Leitner - SKIDATA wrote: > > On Sat, Jan 22, 2022 at 12:26:12AM +0100, Tommaso Merciai wrote: > > > > > > + if (!of_property_read_u8(np, "boost-up", &property_u8)){ > > > + hub->boost_up = property_u8; > > > > IMHO we don't need the property_u8 var here as you could pass > > &hub->boost_up directly to of_property_read_u8() ? > > Hi Richard, > Thanks for your reply. You mean like: > > if (!of_property_read_u8(np, "boost-up", &hub->boost_up)) exactly. > > Let me know. I'll fix that in v2. > great! thanks & regards;rl