Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1395990pxk; Fri, 4 Sep 2020 08:22:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxemumMDBpBgu1qAhKlO92SGurNsCcLaYPLdYA6UP5e2eI9JzlkwqoJ8WGN+kXl0ilkwnly X-Received: by 2002:a17:906:2a04:: with SMTP id j4mr8373363eje.440.1599232961390; Fri, 04 Sep 2020 08:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599232961; cv=none; d=google.com; s=arc-20160816; b=ZKG+7un3B+VCUefKYFwGe8pAL5xUo3tGkydhHw09Q068evpQPjVxgD2jfrg+jjtEbj xL1JwBQHNjQ7u7bjf9v55Q0Zj8baElNI49Tu4L7qLG/8DgMo0qVZbjBLC7NVr3rDEpug Y2tmOl2bGRQ54OkfCogRxGWf9O58xmUbAL055rEoK6LO3Q1CdsIORMM6hwO59aTtsqS/ 8+N19Zz0g7lq1Yl7Zrcys4u1xA/NlHdZcicQjVLg99t/lwrF3/7ibgJJ5t39RzBD451B mWe/z1gJ1oGyNpMeW9H4nqANPYPAgdM7CE01I010KNSpA3nTC8i+OKszKWSH147S/8DZ ljMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hfRaAqp3OgjGxvZ6ZiPUlMAqHAnRFTh/qzWgN99UzoE=; b=PFK/E4G8ZlnOdMuKZQcHq4JqMceFNvUu95Kit7lqgNohOZq/BilMjlkIohFjnnCgq/ i9e9dXhfa5axfQIQSgWqyd99IvyBCqeE0ueu3QxH/WSIXWxTbHmnns0iDZoF/26oTzSP 9OOxHKOWUWQRh71VQcwbgdKUJ5nvOZHDc+9l5YNQfzfuatDMw2i02J7PVfK9ZvkFze/5 fJWwy3JtDfdGioSjKLTQdtC6XRwe9S49hiibSUPLb8VICnC+3eqQERVW90e/8u0hizaO esKagDYe//Mb5BgfdSYiJRrOZe+EGrW2rw8UmM8ZBVpjm4Qag+v4vkVi/jbJn4mRE4zt OVRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=u+d1PKxa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn22si4952382edb.175.2020.09.04.08.22.16; Fri, 04 Sep 2020 08:22:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=u+d1PKxa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730813AbgIDPVl (ORCPT + 99 others); Fri, 4 Sep 2020 11:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729942AbgIDPVW (ORCPT ); Fri, 4 Sep 2020 11:21:22 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4B5FC061244 for ; Fri, 4 Sep 2020 08:21:21 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id e11so7743999wme.0 for ; Fri, 04 Sep 2020 08:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hfRaAqp3OgjGxvZ6ZiPUlMAqHAnRFTh/qzWgN99UzoE=; b=u+d1PKxaZI8J7CeYyknjN5dfzohO5raZMCHbiSOj+CRu4VDW8f6mW86jheDqyQoCXQ +3gTlXHx5xtRmK4TQWdRVye12qJlTYSEq3GCmfLa0drg4TR62tLLPS51CVqz05FacN/8 hzCy6YfeQ3OgGb3mjeB2fZnVJnmrd8/vcX5+dh4oUN/msUgQWCKLHbLtZtsLd1Smjg0U kur+fvienUgiFlNfbYCAkXEBdsjlxja/hyFIRlwyryFLXWRGM9eqTuFCgGo2vB+tPp5P /vd80JDEyPvFXBlhf4GD6N4sOxulQ6KdhA1rWF8rZbtI2GOmTMkwdYn9e/kGuOtnf28V L0+w== 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:mime-version :content-transfer-encoding; bh=hfRaAqp3OgjGxvZ6ZiPUlMAqHAnRFTh/qzWgN99UzoE=; b=dBBH8+ycya44XHu1xwXF7sQW/FlStz2IOaxWhgSnJ4XJJ3fA02MIPDsUajyOvo+yE8 7QR9sQEG9gajBCxWU/GS4jLYM/KAHEePtJ2fmC0mkT/hevcmMIA73np8dn8psjNzjYxb KTG1lsgTXMVHuQ6IS+arIZcrbH7j8agChc2DCTH7DItm6Bpsk6FHHyK7VsAxTPqKLYdJ SEeq1dsU4/ty6KNTDeiy93gveHxezw0PNnr2AuxI+ZjKxntSOlkguMh2XzBx/JbhpP36 d+gZ1jZtcEKwuTTvJk+gQS42RnqDuNFYuRo96J3UeuHVNDfhJ7Q08cdwQVUk6suldJTT a5hQ== X-Gm-Message-State: AOAM532CiuoK4JI/WJxf9eyACY0w9QVLRpyplsNdFXU9BvRgKLA1vhWT p5+bbFxv1Xbs0e3iVyVtecRFDg== X-Received: by 2002:a05:600c:2215:: with SMTP id z21mr8067728wml.176.1599232880578; Fri, 04 Sep 2020 08:21:20 -0700 (PDT) Received: from debian-brgl.home (lfbn-nic-1-68-20.w2-15.abo.wanadoo.fr. [2.15.159.20]) by smtp.gmail.com with ESMTPSA id a11sm7789534wmm.18.2020.09.04.08.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 08:21:19 -0700 (PDT) From: Bartosz Golaszewski To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 0/8] rtc: rx8010: use regmap instead of i2c smbus API Date: Fri, 4 Sep 2020 17:21:08 +0200 Message-Id: <20200904152116.2157-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski I want to use this driver on a platform where the i2c controller doesn't speak SMBUS. This series converts the driver to i2c regmap which can figure out the correct protocol to use. First 7 patches are just cleanups and some refactoring. The actual conversion happens in patch 8. Bartosz Golaszewski (8): rtc: rx8010: remove unnecessary parentheses rtc: rx8010: consolidate local variables of the same type rtc: rx8010: use tabs for instead of spaces for code formatting rtc: rx8010: rename ret to err in rx8010_set_time() rtc: rx8010: don't use magic values for time buffer length rtc: rx8010: drop unnecessary initialization rtc: rx8010: fix indentation in probe() rtc: rx8010: convert to using regmap drivers/rtc/rtc-rx8010.c | 284 +++++++++++++++++---------------------- 1 file changed, 120 insertions(+), 164 deletions(-) -- 2.26.1