From nobody Thu Sep 01 07:39:38 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MJCcB3CXsz4bdh2; Thu, 1 Sep 2022 07:39:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MJCcB2h11z3Zmk; Thu, 1 Sep 2022 07:39:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662017978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qezl3q2f3CgF2fMDcQGmoeEkpHs//7wWnqjsiGHyatE=; b=oIsClmBagnWWl5JjGNW+2GpRX0yr7Ze2E1V693MAxzR8sJDI9jQfEeDetWWJotWMuv0fzH ZNJ+5oq9dg6vcQXOCkf3GvVDh79YgrhBaKzZNYLmCKB3Uvq08oqFtC0P/W8aR/hilEKw29 E7s03cklig5cd6OkGqpgFamFoY32ovKqOdczI90O4wBAva7GhLGGAyCt/5WDflw95ZsfPV Glju5z+/GpE/M6+vOafhmC3hA9vC7nZ0xm08/b0XpQLnU/HEqY65Yk51yx/L39ZIL8tq4m wfV1RS2RFmhyI1lG5snxI02Rn3lTzxDE27n9fuyWVcuFAbkzSrBEwKgt26xcDg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MJCcB1l88zPkK; Thu, 1 Sep 2022 07:39:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2817dcpc087471; Thu, 1 Sep 2022 07:39:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2817dcVD087470; Thu, 1 Sep 2022 07:39:38 GMT (envelope-from git) Date: Thu, 1 Sep 2022 07:39:38 GMT Message-Id: <202209010739.2817dcVD087470@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ganbold Tsagaankhuu Subject: git: 90098ee30e7c - main - Fix reading the correct ID and REV. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ganbold X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 90098ee30e7cf5efec961896071a40f95d241b47 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662017978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qezl3q2f3CgF2fMDcQGmoeEkpHs//7wWnqjsiGHyatE=; b=C80go3CxDzMlHefqtDrdUBwCfrywkzH1IEZD/YeWyf2txU3VXqyi/iV+90wmCO7hbaF+Wx bxV+u6hdvZQLLL0mQDnKqQILVkurCh+N/GSTvHUB6uwTJZiXK3L+XJB92T1LxdyVxa15Oq ypDfkS6gno935h0t3D03/pvf9uQH/HCbz76rK5iJqDfXypbjkSVph4uRoyciP0J542p/50 8hNEkqNDYUohhN5aA5IxBwlCSl7Ao7Nmk8ZfQVTeRFFIuSIxzunCbMzc5gs8XS9TYZUcX0 dISCjPRkgy8VsT1k9QWdfEluhiylb5v0HwWLUUfwly7JTMGIXnpM1/nZZWmlFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662017978; a=rsa-sha256; cv=none; b=Ior6arKnsW4KliCB1N044qCDvlexKMr/jJ3SlE8Mn1vOulzh4stZ7SXMHKLFJbHF8f1RaB WVQPiS10kECvxZzUqvPqc6ac9WqXSzIRjLwtmdDx3JqbGtkJris+8CmM0HwxmSBAzXI8Ed xeDRniZIH31HNutL937X6B9gTwC4S4HFYgGo0vuFWU0SV2PhZr7+PoOBsm3spocGSGKhrk AYyFmtffshHGRkt1yDbmyFYVSXwhGOOdm08Bl58032w0QYt2yDKdCQFn+HA4ZeHgCMD6A4 iqpow+GeWfJKcUYdBc75m75AQDA59UHZhWigZVl4y0vHEq1teo1fPYdrCJV4zA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ganbold: URL: https://cgit.FreeBSD.org/src/commit/?id=90098ee30e7cf5efec961896071a40f95d241b47 commit 90098ee30e7cf5efec961896071a40f95d241b47 Author: Søren Schmidt AuthorDate: 2022-09-01 07:36:37 +0000 Commit: Ganbold Tsagaankhuu CommitDate: 2022-09-01 07:36:37 +0000 Fix reading the correct ID and REV. Reviewed by: manu --- sys/dev/iicbus/pmic/fan53555.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/iicbus/pmic/fan53555.c b/sys/dev/iicbus/pmic/fan53555.c index c4929eee07e5..a6d98353c041 100644 --- a/sys/dev/iicbus/pmic/fan53555.c +++ b/sys/dev/iicbus/pmic/fan53555.c @@ -56,9 +56,9 @@ __FBSDID("$FreeBSD$"); #define FAN53555_VSEL_MASK 0x3f #define FAN53555_CTRL 0x02 #define FAN53555_ID1 0x03 -#define FAN53555_ID1_DIE_ID(x) (((x) >> 4) & 0x0F) +#define FAN53555_ID1_DIE_ID(x) ((x) & 0x0F) #define FAN53555_ID2 0x04 -#define FAN53555_ID2_DIE_REV(x) (((x) >> 4) & 0x0F) +#define FAN53555_ID2_DIE_REV(x) ((x) & 0x0F) #define FAN53555_MON 0x05 #define TCS4525_VSEL0 0x11