Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1715739

[PATCH 0/4] constify rtc i2c_device_id

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Arvind Yadav <arvind.yadav.cs@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 0/4] constify rtc i2c_device_id
Date Sat, 19 Aug 2017 21:10:02 +0200
Message-ID <ughia-5br-5@gated-at.bofh.it> (permalink)
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=+hqLVRQLzHyOs3tug9tskoLF9jkG1rLqD8msr6zj2iY=; b=PzqxOGUtvczRgeeM3sW2DK1fUhx5ZUrDNtLWBmsfaYbfRLX9eXgPcHJNb9gf16ae1+ YXIN/vx9HLeb5iwa+bxOvVvOkZtkvGWjvDooc1IF4RdpGVsDuU9Va/CPBclUK5XYeHFZ TM4rVjDIKANLrNLIT6wFM5LhBN6k6TaL6narvtPfcOnMcb3GQkhFqP+J73wAmwx32u4n aOsnjOl5CM2/rrxdzKlos5mh4mc5FUBZc3krCJjxv05VpQymHOJPu0T/EZWlgx3zN9iX nfwz/Bwz8ImDpP5ZGwzcXk+5ZnHZ4Z2crd7BgyNPKsII1oRDgmbTxX/Rdh9iRxFUMGhW MKcQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+hqLVRQLzHyOs3tug9tskoLF9jkG1rLqD8msr6zj2iY=; b=DR8A9CBbZCGqygB8ac7Fv/hfkAlBelgojgbVEvB9AO0dUDU+QZa47CsonNrW3gSuVi 96PjMRhq9DqenTvJYxrUX3Cy5Uw2ihr1Z8dnIw2e4NuRSLQ97EN1oJSvVQzo9St10q8N +5Peb8eOKhXuFh0sdKz1bHP0aZW9SohaeE1M4frr1rHO4VYWeIPToeLRm8Hr9cYEck47 Fin5KrP2qAUZLr5zjKpKFJQ1mpoCB0O9NeQ8d1l5AFWEWuH0ZByhaCkooxE+6Pd1Arww tTlMul9kpQ956dMZvoCJYFVhSvFrpoRpEtlNOTATISQOikZxlHxK0ZpLbbmB/k1SaF6d WO2w==
X-Gm-Message-State AHYfb5jChjFpEwVqPxpN8ffwMb8UHueFk32CbH+0mD8V7nrYXQ0U35Hn Q6LeU8/0EOyOUiTf
X-Received by 10.99.164.17 with SMTP id c17mr11992522pgf.133.1503169689202; Sat, 19 Aug 2017 12:08:09 -0700 (PDT)
X-Mailer git-send-email 2.7.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 18
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org
X-Original-Date Sun, 20 Aug 2017 00:37:54 +0530
X-Original-Message-ID <1503169678-18078-1-git-send-email-arvind.yadav.cs@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1715739

Show key headers only | View raw


i2c_device_id are not supposed to change at runtime. All functions
working with i2c_device_id provided by <linux/i2c.h> work with
const i2c_device_id. So mark the non-const structs as const.

Arvind Yadav (4):
  [PATCH 1/4] rtc: ds1672: constify i2c_device_id
  [PATCH 2/4] rtc: em3027: constify i2c_device_id
  [PATCH 3/4] rtc: max6900: constify i2c_device_id
  [PATCH 4/4] rtc: rv3029c2: constify i2c_device_id

 drivers/rtc/rtc-ds1672.c   | 2 +-
 drivers/rtc/rtc-em3027.c   | 2 +-
 drivers/rtc/rtc-max6900.c  | 2 +-
 drivers/rtc/rtc-rv3029c2.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.7.4

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] constify rtc i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-19 21:10 +0200
  [PATCH 2/4] rtc: em3027: constify i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-19 21:10 +0200
  [PATCH 4/4] rtc: rv3029c2: constify i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-19 21:10 +0200
  Re: [PATCH 0/4] constify rtc i2c_device_id Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-08-24 11:10 +0200

csiph-web