Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754951AbcL0Mru (ORCPT ); Tue, 27 Dec 2016 07:47:50 -0500 Received: from smtprelay4.synopsys.com ([198.182.47.9]:59557 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754170AbcL0Mrl (ORCPT ); Tue, 27 Dec 2016 07:47:41 -0500 From: Ramiro Oliveira To: p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, laurent.pinchart@ideasonboard.com Cc: CARLOS.PALMINHA@synopsys.com, Ramiro Oliveira Subject: [PATCH v2 0/2] reset: Make optional functions really optional. Date: Tue, 27 Dec 2016 12:37:26 +0000 Message-Id: X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 698 Lines: 24 v2: - Make some comments more explicit - Add optional flag to reduce code duplication - Change shared flag from int to bool to match optional flag Up until now optional functions in the reset API were similar to the non optional. This patch corrects that, while maintaining compatibility with existing drivers. As suggested here: https://lkml.org/lkml/2016/12/14/502 Ramiro Oliveira (2): reset: Change shared flag from int to bool reset: make optional functions really optional drivers/reset/core.c | 39 +++++++++++++++++++++++++++++++-------- include/linux/reset.h | 45 ++++++++++++++++++++++++++------------------- 2 files changed, 57 insertions(+), 27 deletions(-) -- 2.11.0