From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754217AbcBHPAl (ORCPT ); Mon, 8 Feb 2016 10:00:41 -0500 Received: from mga02.intel.com ([134.134.136.20]:46053 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753427AbcBHPAk (ORCPT ); Mon, 8 Feb 2016 10:00:40 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,416,1449561600"; d="scan'208";a="649005148" From: Daniel Baluta To: jic23@kernel.org Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: Fix documentation for iio_dev mlock Date: Mon, 8 Feb 2016 17:03:15 +0200 Message-Id: <1454943795-7582-1-git-send-email-daniel.baluta@intel.com> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mlock *must* be used by core and drivers to protect access to devices state changes. Signed-off-by: Daniel Baluta --- At a first glance there are few places where access to iio_dev state changes are done without mlock protection. Will fix them with follow up patches. include/linux/iio/iio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index b589411..ce9e9c1 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h @@ -448,7 +448,7 @@ struct iio_buffer_setup_ops { * @buffer: [DRIVER] any buffer present * @buffer_list: [INTERN] list of all buffers currently attached * @scan_bytes: [INTERN] num bytes captured to be fed to buffer demux - * @mlock: [INTERN] lock used to prevent simultaneous device state + * @mlock: [DRIVER] lock used to prevent simultaneous device state * changes * @available_scan_masks: [DRIVER] optional array of allowed bitmasks * @masklength: [INTERN] the length of the mask established from -- 2.5.0