From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.8 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796317776; b=GnuoN7GLny2JAgZdw1HZLPuo13oELuI0C05FWxiVHA3RlqigLIDXEmlq1xMTT3EEoUFr rjzaN0V7P9Ocvsdh7tyndwhin/Jv32Ie+TG6nX/0M0gxMxL+5mGE4I+IrdgMwLZpOUSYz 5cn2P+IjwQdh908LgFGM3A7LOlLFt546I88Ful1wlA7qVqGpWeMfqb97YBXafAYmH65in NUlbyDgBj7F70WtbXgRtX694CaL3OBay8AS94tPcUbx2ie/HV+kDB2Sn/xg0tRUxH9rQ4 q+e5ugyNxAgytQUAQ15iH/aG9q4A6GbNZFqiK08kKwTdgq5lJa2pth/Rz9EHZszrZ8A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796317776; 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=g43RoCf2BSr8axXJh9LMLCO8LoPehu01uZSvhpnH5Fk=; b=fYPE2xr3qJbydB7SIz4MHQjqdtPXSv64lNOvnnmSfZxpm6Wz4/Yda2SWVrmjEtfxYntr GqpDfawk2HAB5asNmNBAjPvDQ3AzBpDIszAHqhuUjZjTWrASGwREQ5mUIx9hbYrNnb0DE v+bOOVwkDOAE/hNe3CUpm6uwxRzdjX40mFT1R3pu1JCZNWkL6HvPT1cPlgGEqqw+YNqJS wJAqk9e+2YLsItEXxMpqXVsQctmiufSPbGu/ARP/yuSE836vgzz7oIXNTWyWEKZEIqedz K6zD8rkvFqClXv5oQRVsHqk6js8enwy/JMMpfKzRUmqZLpzYMYXKnjdbtRAxLQQXfoQ== 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=l9ccPjAT; arc=none smtp.remote-ip=192.198.163.8 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 0BC70606A322; Thu, 3 Dec 2026 17:09:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0BC70606A322 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=l9ccPjAT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796317776; x=1827853776; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=g43RoCf2BSr8axXJh9LMLCO8LoPehu01uZSvhpnH5Fk=; b=l9ccPjATf/XLxn4O1TeMAGSi2v3WXe6oAZZ2jbmObm9AOTVo1UfSA9NZ a2bW1rATLxnUjvu5DbzrHuBxqP4QHZl4GAfK8QX0Q1mP9bGajvIbJ8mHG wx9PYlPCKSfg7GGc/IIE7tthYD4AiKaftLf5wvajaRNXZcqSayotxHN32 PHtpw1/1aDoued2Nm8KhmZeOuIQkcEhlNj2m+3twgizFM3bJGrhhDxjIl UXinTz1movCy5NQK7T1pJsmvDygebLnzbPvalru6OmwcVXJiJrysIkTML T02n9BwYdDeBBGSeR+Rj6eptbyXrHO0VIEreT2xhhkBK823za5J1SokUZ w==; X-CSE-ConnectionGUID: LIdjg/YmSPWD/G1ClaKTOg== X-CSE-MsgGUID: daJLEmmgTvGQE3+eS9s9ig== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5167563" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="5167563" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 09:09:36 -0800 X-CSE-ConnectionGUID: KsZROkHcSgiRB0BJJjfLng== X-CSE-MsgGUID: t2WEYqeHS72t+PogGIKbyQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,248,1794902400"; d="scan'208";a="13895065" Received: from inaky-mobl1.amr.corp.intel.com (HELO localhost) ([10.245.244.115]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 09:09:33 -0800 Date: Thu, 3 Dec 2026 19:09:29 +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: 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: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Wed, Dec 02, 2026 at 03:39:21PM +0200, Matti Vaittinen wrote: > The BD7971x are logically similar to BD7970x. Main difference is the > amount of bits in DAC-word. The BD7970x had 8-bit DAC whereas the > BD7971x use 10-bit DAC word. > > The SPI data format differs. The BD7971x requires two least significant > bits to be zeroes, and carries the DAC word in following 10 bits. The > channel number is in highest 4 bits. > > Add support for the BD7971x family of DACs. Subject went wrong (w/o required prefix). ... > +/* The BD7971X uses 16-bit data transfers. Four high bits define the channel > + * and following 10 bits define the DAC word. Two last bits must be zero. > + * > + * Let's try having the 4 channel-bits as an address and following bits as data > + */ /* * The multi-line comment style should follow this * example. It's even inconsistent to the one used * in the driver. */ ... > struct bd79703_data *data = iio_priv(idev); > + 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. -- With Best Regards, Andy Shevchenko