Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3085627ybc; Thu, 21 Nov 2019 03:08:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxsH2CIDu5gZ3VK2ziE7OHdx59y6WIa5pHXV+qY/iapIU29AjzoEqhWVwkxOcQEVckxP3M5 X-Received: by 2002:a17:906:b6c3:: with SMTP id ec3mr13463969ejb.27.1574334516739; Thu, 21 Nov 2019 03:08:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574334516; cv=none; d=google.com; s=arc-20160816; b=H/Jdb7mYLsCEgkjx9pbHcfMzjXDvQubhtLAAqsPM6iWmJaCpCcEKcsGxM3G5EZkcUz ULg6+YL3BaaUtS4NnEwy7mNwdN3GsE6RJPbVHUJ4ILK9EjplbS68xMsht/ySP9j6hNmE U81o8Kx85lbe8tNDDqFjNa6XrhyS138UwltaaL+VsOYqc0ssW9gbtLbT0A+vMmuYsmAa e0+cLPlHdp48nlJaTD4hYYYYFNQ8xKhMUlAEWimVctVp61HBjNpa1A8ocCVvY3YwSsPS X1j4rI0iODcYYgVLjCKR/Qo9E/8tf+X+XkMzJW5m6mKp2gj/RH1bfoEE6JxyEAxTUCFt t2NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=OhtREXLEPovh2INiG1vnuC84uK8FvPx6VEk4u0CcrrM=; b=iPu58mdddwiULUXzV5hSPDvdfYoW9RbwF9MoD0d11Lsr5el0LR4fqLfnposO0UQcOr 6twIAyWJGVerEF6+3woffKEUg71glYRxGRn66X8NmFAZtgu/sxtm5bFVv/JaPxaPPtJ4 8ptMFBsroFWsueQlfzwce6oZ4i2z2H2826/Utxm+SL2Akycsv08KpJsswtd3SEJtkNp3 XQTw9chw9YVkguyUxjao+DDCuVy2DuEhtfRSOKpko2m0U3Gn+v1dR1DIWwMRqKn7XICS p4FFA/G6LxBfk8X2Lsrpb3LV6q4gGqa2G+vjoNbJPBaDcVq+k/wPsBM9rr9QwhmD6zPw fbag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ZHUKQT94; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si1478653ejj.11.2019.11.21.03.08.12; Thu, 21 Nov 2019 03:08:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ZHUKQT94; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726968AbfKULGG (ORCPT + 99 others); Thu, 21 Nov 2019 06:06:06 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:18266 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726165AbfKULGG (ORCPT ); Thu, 21 Nov 2019 06:06:06 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xALAvIQV026272; Thu, 21 Nov 2019 12:05:40 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=OhtREXLEPovh2INiG1vnuC84uK8FvPx6VEk4u0CcrrM=; b=ZHUKQT94E35jxMTuPiidNnBVxL/JQIz201SOvqDXW+5gHxaLHD7wpsLYRz++NhPZNO5t hkIzAOc3Xq8LPuW2Ep1pZkmZYhtlyArGlAJaOlWXUpRN38jvaCu2lepcqcVkCWw/9awu sqHDlDPVBgTohnFIhqjZOWM68FX7Q8iKFxilmtpBrlgz0OcaHdWtzebYiKiKoc+ShRae wqBrca3fvSwJv5ucqLzG8cKYibvqAeR2NCH4IYAbqGXdi9t8+sjC0a786wEQQD1RNxqv s1JHnrb003BWfXJrqkrjiuiQALlOGSrHVkOny9nl7WNv+A7uNpE9CEOd6RCrTcgZldIE SA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2wa9upbaaj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Nov 2019 12:05:40 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 31E7710002A; Thu, 21 Nov 2019 12:05:40 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 197332BA32B; Thu, 21 Nov 2019 12:05:40 +0100 (CET) Received: from localhost (10.75.127.45) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 21 Nov 2019 12:05:39 +0100 From: Fabrice Gasnier To: CC: , , , , , , , , , , Subject: [PATCH] iio: trigger: stm32-timer: remove unnecessary update event Date: Thu, 21 Nov 2019 12:05:17 +0100 Message-ID: <1574334317-30014-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-21_02:2019-11-21,2019-11-21 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to explicitly generate update event to update timer master mode. Signed-off-by: Fabrice Gasnier --- drivers/iio/trigger/stm32-timer-trigger.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iio/trigger/stm32-timer-trigger.c b/drivers/iio/trigger/stm32-timer-trigger.c index a5dfe65..2e0d32a 100644 --- a/drivers/iio/trigger/stm32-timer-trigger.c +++ b/drivers/iio/trigger/stm32-timer-trigger.c @@ -297,9 +297,6 @@ static ssize_t stm32_tt_store_master_mode(struct device *dev, strlen(master_mode_table[i]))) { regmap_update_bits(priv->regmap, TIM_CR2, mask, i << shift); - /* Make sure that registers are updated */ - regmap_update_bits(priv->regmap, TIM_EGR, - TIM_EGR_UG, TIM_EGR_UG); return len; } } -- 2.7.4