From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-f195.google.com ([209.85.192.195]:33926 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932699AbeGIPl3 (ORCPT ); Mon, 9 Jul 2018 11:41:29 -0400 From: Akinobu Mita To: linux-media@vger.kernel.org, linux-i2c@vger.kernel.org Cc: Akinobu Mita , Peter Rosin , Sebastian Reichel , Wolfram Sang , Jacopo Mondi , Laurent Pinchart , Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab Subject: [PATCH -next v3 0/2] introduce SCCB helpers Date: Tue, 10 Jul 2018 00:41:12 +0900 Message-Id: <1531150874-4595-1-git-send-email-akinobu.mita@gmail.com> Sender: linux-media-owner@vger.kernel.org List-ID: This patchset introduces Serial Camera Control Bus (SCCB) helper functions and convert ov772x driver to use the helpers. * v3 - Rewrite the helpers based on the code provided by Wolfram - Convert ov772x driver to use SCCB helpers v2 - Convert all helpers into static inline functions, and remove C source and Kconfig option. - Acquire i2c adapter lock while issuing two requests for sccb_read_byte Akinobu Mita (2): i2c: add SCCB helpers media: ov772x: use SCCB helpers drivers/media/i2c/ov772x.c | 20 +++--------- include/linux/i2c-sccb.h | 77 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 15 deletions(-) create mode 100644 include/linux/i2c-sccb.h Cc: Peter Rosin Cc: Sebastian Reichel Cc: Wolfram Sang Cc: Jacopo Mondi Cc: Laurent Pinchart Cc: Hans Verkuil Cc: Sakari Ailus Cc: Mauro Carvalho Chehab -- 2.7.4