Received: by 10.223.185.116 with SMTP id b49csp4180749wrg; Tue, 6 Mar 2018 11:08:01 -0800 (PST) X-Google-Smtp-Source: AG47ELummFP2r75g84Iox6a89K+quNakoxEGTbUYwGQST3eGw6uMSlalSoIxBa76qu5YZrUUc1ff X-Received: by 10.98.76.26 with SMTP id z26mr20110761pfa.220.1520363281596; Tue, 06 Mar 2018 11:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520363281; cv=none; d=google.com; s=arc-20160816; b=intyTZPCB5RHPbKg48H6cL91J/oY5s5FkOoqece8vHh79zFBfyt86O0IokLixgvbzN lTzU7qTFhQbWNsdzpzFfsjKYwSs/exFTMs/5KMSbeFj+sciD9XlUBcjvXvTxLD94QjD3 kUgV3P+GEIgMmdGzi4xdacM9HwR2PcusJ3X8zf1oeaENeAhcRsWNliSrELKB4yZ4dpFx b8q8gTOhSD6VUfc/OXP4d2JAGcCU7/lRc5waN264ach5tkj9dW83oxcZ3xmv8smGzFcz D8isTEmfB4xrJofuwnEN2Uc+imTaLJ+491qe8+TqeDeY9XSLRRXznzWaEaz74Uiv/eKA /fRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=w7YH6wOVjTmIurfZd5KYZ7HSRGxzXa399CeuFpSuxIs=; b=nRr/9lQ4GQGfD3vEbGOGtWagZPZoog/TLp9EUBYjAsYGVKBkgHvovFDpx5wR10Rf8s n+Yg7Vba0B5l80HD0P88xL8DQM+XZITE7FWc1JSRYQ39Xku/kGTY6xxtvBNL+tTt92wb 7vjhsGUir2cc4jjNaMg3OMNNfFmzbkce5wfL1zYZlwJvIx2k17ROJSFKrlRUP0PoUzpp k7NHRMSrmk/7QZLx7tVVq8/D4gk9JSn4iprfHTpt5mONUb2m5DCAuW9obBObIEXCqHzq ZgNRu1lnbXgVqcBdeOE/xss88vgbFvGupf1BnTcaRxiMNLCwp8OxBZAjFLjvEXyjYzrO cGQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MTvthr8O; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s12si10158897pgr.762.2018.03.06.11.07.46; Tue, 06 Mar 2018 11:08:01 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=MTvthr8O; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933221AbeCFTGF (ORCPT + 99 others); Tue, 6 Mar 2018 14:06:05 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:37015 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932313AbeCFTGC (ORCPT ); Tue, 6 Mar 2018 14:06:02 -0500 Received: by mail-it0-f66.google.com with SMTP id k79so177586ita.2 for ; Tue, 06 Mar 2018 11:06:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=w7YH6wOVjTmIurfZd5KYZ7HSRGxzXa399CeuFpSuxIs=; b=MTvthr8Op4S3VlgwXtYKrjV44p97IMBaFw3GZOeAxWbx0i9tZtkHa1CkoS6nJUVzp4 r154KUvV4KdNUeT9gw7v2DiF6DnhGIQCwUlbaJ1c79JWLZHXBdKalt9jcyQ9WLlItC/m sjpYCDWLaMRJc3pNzoNJDs88GZ286EUWtiGLoWsW68kR3W5/sKzB2GFqEibXe028ysLs SjJP6wTNVluk+3SgAYjVUxqyu8syEwBp6v7CD524q2s6w/QnYr5NfjiJDLWxZhyL6OOR FVtxlbniekFetGh0svcS/o0Ns8kTp32kZFwhGIM5yCwOL/TMLbBBIiZ0RCLJtKHOu6TI JjmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=w7YH6wOVjTmIurfZd5KYZ7HSRGxzXa399CeuFpSuxIs=; b=byNJ5sG9xIqGxdn0LkEEsrEJT2a99GzXMpQXmjKlSy6dkP10gdSmIlw7HD5qVr9pzE rU6KmoCfOd3fHtGin3oaMkt4afn1LxEG0p2+kTS7FaSltUd8Hth2pc3pkYe1Hf4tjp6m YD7e0rj9bRKrKUzYP1SNpHjLoRbeTQDoRiuSVlE7zTu0RGO3LTQc6GKLu3jrQ6LNVK3V cuUbmAHBb3ukUs5duEk6RvOEIo8c4Xo5orqMfIkwJKvKoLtNShvdjDLiXUZx4I6e5hzu VXigl7SV2CDeOn/U9HGCrrbpK2kIruq8VSuJGly+VjXQQfTI6WxGIOvsdbL/aKR/XU/f 3FZA== X-Gm-Message-State: AElRT7HozQFwCFcHRSnz+bhrNPVq2P1Q99dYhCHsc6E+/vEaKRIvVjFd Db/PPvbQ/Eu47Oh8eFY/+j2vpA== X-Received: by 10.36.103.72 with SMTP id u69mr18915619itc.4.1520363161559; Tue, 06 Mar 2018 11:06:01 -0800 (PST) Received: from decatoncale.mtv.corp.google.com ([2620:0:1000:1501:e4e8:e3c6:19f1:ae51]) by smtp.gmail.com with ESMTPSA id f76sm10490736ioi.41.2018.03.06.11.06.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Mar 2018 11:06:00 -0800 (PST) Date: Tue, 6 Mar 2018 11:05:58 -0800 From: Benson Leung To: Dmitry Torokhov Cc: Benson Leung , Olof Johansson , Bhumika Goyal , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "platform/chrome: chromeos_laptop: make chromeos_laptop const" Message-ID: <20180306190558.GA60955@decatoncale.mtv.corp.google.com> References: <20180306185915.GA93346@dtor-ws> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <20180306185915.GA93346@dtor-ws> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 06, 2018 at 10:59:15AM -0800, Dmitry Torokhov wrote: > This reverts commit a376cd91606365609d8fbd57247618bd51da1fc6 because > chromeos_laptop instances should not be marked as "const" (at this > time), since i2c_peripheral is being modified (we change "state" and > "tries") when we instantiate devices. >=20 > Signed-off-by: Dmitry Torokhov Thanks for the catch, Dmitry. Applied. > --- > drivers/platform/chrome/chromeos_laptop.c | 22 +++++++++++----------- > 1 file changed, 11 insertions(+), 11 deletions(-) >=20 > diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform= /chrome/chromeos_laptop.c > index 6dec6ab13300..d8599736a41a 100644 > --- a/drivers/platform/chrome/chromeos_laptop.c > +++ b/drivers/platform/chrome/chromeos_laptop.c > @@ -423,7 +423,7 @@ static int chromeos_laptop_probe(struct platform_devi= ce *pdev) > return ret; > } > =20 > -static const struct chromeos_laptop samsung_series_5_550 =3D { > +static struct chromeos_laptop samsung_series_5_550 =3D { > .i2c_peripherals =3D { > /* Touchpad. */ > { .add =3D setup_cyapa_tp, I2C_ADAPTER_SMBUS }, > @@ -432,14 +432,14 @@ static const struct chromeos_laptop samsung_series_= 5_550 =3D { > }, > }; > =20 > -static const struct chromeos_laptop samsung_series_5 =3D { > +static struct chromeos_laptop samsung_series_5 =3D { > .i2c_peripherals =3D { > /* Light Sensor. */ > { .add =3D setup_tsl2583_als, I2C_ADAPTER_SMBUS }, > }, > }; > =20 > -static const struct chromeos_laptop chromebook_pixel =3D { > +static struct chromeos_laptop chromebook_pixel =3D { > .i2c_peripherals =3D { > /* Touch Screen. */ > { .add =3D setup_atmel_1664s_ts, I2C_ADAPTER_PANEL }, > @@ -450,14 +450,14 @@ static const struct chromeos_laptop chromebook_pixe= l =3D { > }, > }; > =20 > -static const struct chromeos_laptop hp_chromebook_14 =3D { > +static struct chromeos_laptop hp_chromebook_14 =3D { > .i2c_peripherals =3D { > /* Touchpad. */ > { .add =3D setup_cyapa_tp, I2C_ADAPTER_DESIGNWARE_0 }, > }, > }; > =20 > -static const struct chromeos_laptop dell_chromebook_11 =3D { > +static struct chromeos_laptop dell_chromebook_11 =3D { > .i2c_peripherals =3D { > /* Touchpad. */ > { .add =3D setup_cyapa_tp, I2C_ADAPTER_DESIGNWARE_0 }, > @@ -466,28 +466,28 @@ static const struct chromeos_laptop dell_chromebook= _11 =3D { > }, > }; > =20 > -static const struct chromeos_laptop toshiba_cb35 =3D { > +static struct chromeos_laptop toshiba_cb35 =3D { > .i2c_peripherals =3D { > /* Touchpad. */ > { .add =3D setup_cyapa_tp, I2C_ADAPTER_DESIGNWARE_0 }, > }, > }; > =20 > -static const struct chromeos_laptop acer_c7_chromebook =3D { > +static struct chromeos_laptop acer_c7_chromebook =3D { > .i2c_peripherals =3D { > /* Touchpad. */ > { .add =3D setup_cyapa_tp, I2C_ADAPTER_SMBUS }, > }, > }; > =20 > -static const struct chromeos_laptop acer_ac700 =3D { > +static struct chromeos_laptop acer_ac700 =3D { > .i2c_peripherals =3D { > /* Light Sensor. */ > { .add =3D setup_tsl2563_als, I2C_ADAPTER_SMBUS }, > }, > }; > =20 > -static const struct chromeos_laptop acer_c720 =3D { > +static struct chromeos_laptop acer_c720 =3D { > .i2c_peripherals =3D { > /* Touchscreen. */ > { .add =3D setup_atmel_1664s_ts, I2C_ADAPTER_DESIGNWARE_1 }, > @@ -500,14 +500,14 @@ static const struct chromeos_laptop acer_c720 =3D { > }, > }; > =20 > -static const struct chromeos_laptop hp_pavilion_14_chromebook =3D { > +static struct chromeos_laptop hp_pavilion_14_chromebook =3D { > .i2c_peripherals =3D { > /* Touchpad. */ > { .add =3D setup_cyapa_tp, I2C_ADAPTER_SMBUS }, > }, > }; > =20 > -static const struct chromeos_laptop cr48 =3D { > +static struct chromeos_laptop cr48 =3D { > .i2c_peripherals =3D { > /* Light Sensor. */ > { .add =3D setup_tsl2563_als, I2C_ADAPTER_SMBUS }, > --=20 > 2.16.2.395.g2e18187dfd-goog >=20 >=20 > --=20 > Dmitry --=20 Benson Leung Staff Software Engineer Chrome OS Kernel Google Inc. bleung@google.com Chromium OS Project bleung@chromium.org --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6gYDF28Li+nEiKLaHwn1ewov5lgFAlqe5pMACgkQHwn1ewov 5lhJ2Q/+P++7MZRyATRM75jyuNh3zhQ1CgxE1WkeAdImKRn/PHSiGpi9tuPWlMPT /6o/ZkPCN4e6G/UxEkB0MbRTLtFNh/4k1EI1yQsdCN/D+WuRejhn3qAWeFwtl24M lEriqAZWzLJyWLrNpmUNxOPv6XeGlIKWfdc51hqa3GMbt82axsW0LVZ/iqHViDKn dM0gtwgFTiirPVk+tD5NSlx66X4cKf7JK2YpNkso6K+BJ2nen2qCq1k8yfmaXYC4 omEwsWlpWlSsOPfwF5g0uNkjCUNTTLcALJPNTbN/IaTT4c4pZ+Xp+zW6QkGNtc5Z wLrCxjrnMVXMCMMnYVhLoB74r8hIx3UJceBTbUACHxXw1N9XpZZrCBwzG/oyDY0D ex4YEenBpLN6mMd6bVyl0sMjhIqX1vOO+OKyMbxEpdHyT8QzHNa1aseQWnizOXtY T596V4j03yNdYg6H46mDT2JNlcX5GZF21EGpt/9LqRbit+Aq3WJKx6ychl03Nmhn HtvWl1UGBdUM78oFUckVPGZa4xgeZDNZysi2WmJ+u6zQwvNLWkm5Q26q2Nxy6VhP wY9Wc/waw+xCLc6wMYrgrCv0rwdeoDJFCadv/XIrAsgtazVlJy0+DPow6P6a2/2Z FX6sJVmyyjErK1POaMqtIgsrH3dAAgyAIUr0OSxQF8fD4zPSUII= =SZPv -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--