From patchwork Fri Dec 8 15:37:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Van Asbroeck X-Patchwork-Id: 846326 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ytc2C63vBz9tBC for ; Sat, 9 Dec 2017 02:38:27 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753957AbdLHPhp (ORCPT ); Fri, 8 Dec 2017 10:37:45 -0500 Received: from mail.arcx.com ([184.94.50.18]:16437 "EHLO WEBMAIL.arcx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753914AbdLHPhp (ORCPT ); Fri, 8 Dec 2017 10:37:45 -0500 Received: from trappist.arcx.com (192.168.2.155) by WEBMAIL.arcx.com (192.168.2.64) with Microsoft SMTP Server (TLS) id 15.0.847.32; Fri, 8 Dec 2017 10:37:43 -0500 From: Sven Van Asbroeck To: , , , , , , , , , CC: , , Subject: [PATCH RESEND v6 0/2] at24: support eeproms that do not auto-rollover reads. Date: Fri, 8 Dec 2017 10:37:23 -0500 Message-ID: <1512747445-5817-1-git-send-email-svendev@arcx.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [192.168.2.155] X-ClientProxiedBy: webmail.arcx.com (192.168.2.64) To WEBMAIL.arcx.com (192.168.2.64) Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org v6 resend: added Reviewed-by: Rob Herring v6: added newlines, asked by Bartosz no need for braces around ternary operator's condition: bits = (at24->chip.flags & AT24_FLAG_ADDR16) ? 16 : 8; but keep the braces anyway, as asked by Uwe Klein-Koenig v5: at Rob Herring's request, renamed devicetree property: at24,no-read-rollover -> no-read-rollover v4: renamed devicetree property: no-read-rollover -> at24,no-read-rollover dt-bindings update now a separate patch v3: rebased against at24 maintainer's devel staging branch: git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git at24/devel clarified some of the comments and wording v2: kbuild test robot feedback: correct "warning: comparison of distinct pointer types lacks a cast" build warning on some compilers / architectures. v1: original patch Sven Van Asbroeck (2): at24: support eeproms that do not auto-rollover reads. dt-bindings: add eeprom "at24,no-read-rollover" property .../devicetree/bindings/eeprom/eeprom.txt | 5 +++ drivers/misc/eeprom/at24.c | 37 +++++++++++++++------- include/linux/platform_data/at24.h | 2 ++ 3 files changed, 32 insertions(+), 12 deletions(-)