From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796377166; b=x0t8b0lorNEeAfRcw/zmfqCqFuZdyaQh+jyn7Sd1xeb7GUHTdbBKbeVD6dQCJSsG/8dE pBifrQ22cul7dg/uPL9GrazTV02eg2D4ID5tvKTLCKphrFnZ5x7/Fkgr8xuZVNBZJW6vd VFJx1wvR6+OtbKJN0q5VI9VJPwdCxAE3/pmxRZuSNSmmB0FFOattcJBE1d+3dCJMMS6nL +qLfz66gWFM0v3kO+XlkOViuI0843L4qbEYfrctF6sTDBCITTgQTfAKlY6ODJqMBOnVkA didWyxi+9ZObeyL1raOKg9SvTzhwuC0baoWOHFhHpSrm1Sfi8UnT1vRKl7EezQKpzZw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796377166; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=4xr/VAF8J/mSL/ae1xVauCVJtbo6299AgYGgA83OCoE=; b=3mow8tLt+sPIhnCj3TFGHR65RaotUY6NUC4YaCwnsVLOxKrGbdVF4GJDs0OkcI9x5pRW /O5TP0k2rZwUpW9zYM8qNh32Ke+SgmUTJMf/P84cK8Mdjw6knG6AUBtsKoqSO9OEZyp0+ mppS0GXXkceLiEviC0jZlTLLURU3YwRTlG2CEXWF5DxWoeP2SyZvmpOFU7TqlXzOeLIPe NmvI6cpQsVY+cPiugqCfGaAWvIYQMqiyZU62VDZRhra5aqoyVVMhS+UZIWvLHu95Iwo55 6i5sQtj+1QATQxUf/Sduz7vat3cMTy+kw4FZdSaEH/rcg8q27qOP0IzUNQNJ4Hk05dA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=OtvcyOkh; arc=none smtp.remote-ip=198.175.65.10 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF484606A322; Fri, 4 Dec 2026 09:39:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AF484606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=OtvcyOkh DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796377166; x=1827913166; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4xr/VAF8J/mSL/ae1xVauCVJtbo6299AgYGgA83OCoE=; b=OtvcyOkhzabOfQoJR9pAE95Z61XX+YznEvOl/1OAWOYu417/sERqBVWD B67JR9G4VbPX3kdtb28T/8ySVdxnnIxg6i7uDui4znoqQFsQ2zP5nNb9/ dWjrINTu5Bw3llr23HjZDylQj8VwqWKPkD32htD2hJhw1kiliN1GL2GdL 7i9MF81hBgOEtz2rlO62pmoUc3kOZaZlzz33DCSNX1Rj77U1/ByaxN+GP 3zcNZ18vEe7kuy4LJ4/mkBcdZxuWFsf7yIqyiOR/CkFa+Alwmvv/SDqcF kS7f3kiF8hvjnBI/pR3EkaxI7Qn87JtqFCeYsiFamCPG6o2zkKhnF73lL Q==; X-CSE-ConnectionGUID: FC1DT1yPT12pGxNFUuMObQ== X-CSE-MsgGUID: ySRoTSi6TnWrhJWWm5uVWA== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5291259" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5291259" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 01:39:25 -0800 X-CSE-ConnectionGUID: rSeY27dmQUCXFg1y4FMXHw== X-CSE-MsgGUID: qdOcP5aWSLOcSPPa2EGqCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14527396" Received: from alekseim-mobl.ger.corp.intel.com (HELO localhost) ([10.245.245.10]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 01:39:22 -0800 Date: Fri, 4 Dec 2026 11:39:20 +0200 From: Andy Shevchenko To: Matti Vaittinen Cc: Matti Vaittinen , Matti Vaittinen , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] bd79703: Support ROHM BD7971x DACs Message-ID: References: <5a147154-c37e-4438-86b6-2e4639781f4e@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5a147154-c37e-4438-86b6-2e4639781f4e@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Fri, Dec 04, 2026 at 07:58:30AM +0200, Matti Vaittinen wrote: > On 03/12/2026 19:09, Andy Shevchenko wrote: > > On Wed, Dec 02, 2026 at 03:39:21PM +0200, Matti Vaittinen wrote: ... > > > + unsigned int tmp = val; > > > > This signed->unsigned trick begs for a comment. It's quite easy to miss and > > someone might introduce some issues due to that. > > I was a bit unsure whether to do this or not. With the data-sizes these DACs > use, this assignment shouldn't really be needed. Still, leaving shifting to > be done with signed int felt a bit error prone, in case things change. If > you agree the assignment to unsigned makes sense, then I suppose adding a > comment is good idea. Yes, I agree. -- With Best Regards, Andy Shevchenko