From patchwork Fri Jan 21 16:54:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Sampaio X-Patchwork-Id: 533994 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B209C433F5 for ; Fri, 21 Jan 2022 16:56:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379619AbiAUQ4V (ORCPT ); Fri, 21 Jan 2022 11:56:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379753AbiAUQzE (ORCPT ); Fri, 21 Jan 2022 11:55:04 -0500 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54B6FC061748; Fri, 21 Jan 2022 08:54:54 -0800 (PST) Received: by mail-ot1-x333.google.com with SMTP id c3-20020a9d6c83000000b00590b9c8819aso12498612otr.6; Fri, 21 Jan 2022 08:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WfWZ8z/c/kEADyr83ZdSZ7HmhzMbcPfKaXMwZ33jf64=; b=QB83QpSASmCXMToFqXDtKMEQRhXoMgyyyCiWNfu8VEiMPRd4Lp9HrXXmUaY/bN+74s bwRWXUaMr6Tun1Bg7/dWpT3nmESJOGlHDjUU429H4HH9IX3RlADya7L78fr4ysnpuWsM ZEBdIDFB3pj9VFbTbxRv2TXP8PHt64lo88E+tTC8NK+Ipn7Hl8hk+EQGg94XKEVnESc8 q+8Wts7mftymr7j7CdzS/rb8N5J2S2hfUl0ld+m9a+yMmAo5IRYuApGKVhm0m6kgUCru zEPP+bxNr7W+1Wwz5QZkC3UfAXAPRvMmJIfAe4Iu2NCOkgF9IhT43yg480OIkrsY4U9q TQrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WfWZ8z/c/kEADyr83ZdSZ7HmhzMbcPfKaXMwZ33jf64=; b=i7FP1UeXc8gg+WI3l98bcM7H5Xa5ItoYafh2oA9uA26pSYBEalJQZAcsJwugHHhCok qfSyPixDOUhu5QckiI0JkT7uxNt1+/W+zLsWtQza11LHiQWSbNEdgWhOOSKRFPUjZ4Vc uZhhYs7H07lrX78KMpKBSLuxr7j3XvNE0WMj9U8sFvkbMw7HYO1o/sb5m/Kof7/j9bim /GMbSQ4/oVVm+yZSgz3uKIJwt2xOUTMxFZ3y0zLu1crd4JRzRqgF1cedwKtVLCvvAdzc 07mt8Jy0H5LdwWy5c0LpRxUdhl1pOdNY9HtcMPVFmX/coVCWgbFWUSkn96eXmmxdFjwn TWJA== X-Gm-Message-State: AOAM5326WPIl/tgQskE7Fd0TEVzHJ0G7dJOIPYpBiZcUxjA8F5MOsebI 3HWipmsIBFaMyanVBGMLTHG9NsdHpos= X-Google-Smtp-Source: ABdhPJzu1YXz0p2R3AreojsTRQmVu1cEtFeHh4gHzGHQ2i4QnVquGgkJyRDCzA+AyL+U0X7fJBrO1g== X-Received: by 2002:a05:6830:3152:: with SMTP id c18mr3442539ots.244.1642784093746; Fri, 21 Jan 2022 08:54:53 -0800 (PST) Received: from thinkpad.localdomain ([2804:14d:5cd1:5d03:cf72:4317:3105:f6e5]) by smtp.gmail.com with ESMTPSA id y8sm1089271oou.23.2022.01.21.08.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 08:54:53 -0800 (PST) From: Luiz Sampaio To: Hans Verkuil , Mauro Carvalho Chehab Cc: linux-kernel@vger.kernel.org, Luiz Sampaio , linux-media@vger.kernel.org Subject: [PATCH 10/31] media: radio: changing LED_* from enum led_brightness to actual value Date: Fri, 21 Jan 2022 13:54:15 -0300 Message-Id: <20220121165436.30956-11-sampaio.ime@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220121165436.30956-1-sampaio.ime@gmail.com> References: <20220121165436.30956-1-sampaio.ime@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The enum led_brightness, which contains the declaration of LED_OFF, LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports max_brightness. --- drivers/media/radio/radio-shark.c | 6 +++--- drivers/media/radio/radio-shark2.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/radio/radio-shark.c b/drivers/media/radio/radio-shark.c index 8230da828d0e..7998b75df525 100644 --- a/drivers/media/radio/radio-shark.c +++ b/drivers/media/radio/radio-shark.c @@ -217,19 +217,19 @@ static void shark_led_set_red(struct led_classdev *led_cdev, static const struct led_classdev shark_led_templates[NO_LEDS] = { [BLUE_LED] = { .name = "%s:blue:", - .brightness = LED_OFF, + .brightness = 0, .max_brightness = 127, .brightness_set = shark_led_set_blue, }, [BLUE_PULSE_LED] = { .name = "%s:blue-pulse:", - .brightness = LED_OFF, + .brightness = 0, .max_brightness = 255, .brightness_set = shark_led_set_blue_pulse, }, [RED_LED] = { .name = "%s:red:", - .brightness = LED_OFF, + .brightness = 0, .max_brightness = 1, .brightness_set = shark_led_set_red, }, diff --git a/drivers/media/radio/radio-shark2.c b/drivers/media/radio/radio-shark2.c index d150f12382c6..776877a294d8 100644 --- a/drivers/media/radio/radio-shark2.c +++ b/drivers/media/radio/radio-shark2.c @@ -189,13 +189,13 @@ static void shark_led_set_red(struct led_classdev *led_cdev, static const struct led_classdev shark_led_templates[NO_LEDS] = { [BLUE_LED] = { .name = "%s:blue:", - .brightness = LED_OFF, + .brightness = 0, .max_brightness = 127, .brightness_set = shark_led_set_blue, }, [RED_LED] = { .name = "%s:red:", - .brightness = LED_OFF, + .brightness = 0, .max_brightness = 1, .brightness_set = shark_led_set_red, }, From patchwork Fri Jan 21 16:54:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Sampaio X-Patchwork-Id: 534392 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD63BC433EF for ; Fri, 21 Jan 2022 16:56:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379036AbiAUQ4s (ORCPT ); Fri, 21 Jan 2022 11:56:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379976AbiAUQzR (ORCPT ); Fri, 21 Jan 2022 11:55:17 -0500 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A06AC06174E; Fri, 21 Jan 2022 08:54:57 -0800 (PST) Received: by mail-oo1-xc29.google.com with SMTP id v10-20020a4a860a000000b002ddc59f8900so3495545ooh.7; Fri, 21 Jan 2022 08:54:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=axyN3Dmc+7i+0pzDHxCOIZN0RRBTRZkn0CanzB+myz0=; b=H/B2qyOFALvP9VFgovDj7du1b8svC8K7k2YjHRIPfkpAurE74+rahvqGO2yfytLNFB ki1YIOOlpG9npQJ3Bj1vwyvUY+e1Pz8YnU5DmPlcyLtM9JO2BxJ4KS0qHLpAzpmKdePl 0G9I3pplsNbfyBN2yNVnnIma3FpJzkJ0PSjdC7g7DjPogdR+dwWYGg7tFvzYl9LTlBTO czKoTDx2QeMutjcfGzCUjKdodosIF9Xe80Y66dT/OZ+coUmyi1wVX8hKn52k4I7EEVUl cre6LJDg9R+6+DTQ33HuezIQTOOo3BDszs2kmfZfzV0Raul4oIb6fTokXJPt/J3HzhqJ EHbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=axyN3Dmc+7i+0pzDHxCOIZN0RRBTRZkn0CanzB+myz0=; b=gFQFU6ifX65jI6BsgPEncz/j40rDnnfwgF+8+CzAMV3aLnsw91EZahDrdoYihLqAGV GiE5mTOpC3GAPUp5RlWgoyKbQdo9zzC16y/524aWAMHSl3ZT3dHQOml9QUKn8k2yoySZ KMUtSHcVd+1dEZEsxcYSjToU2fD4CPzfb+KM2lcX+kDBVCkJLKswxjq4Ww126/OlaplJ H68wJnUTyO8zS6U5OumZ8fdsSQfRhFZAAlZyGyk5tiSAzz5cwlAy6ueLCgmypB64qXR5 kjmOUVtyc5tKPsYd1/cPBACSEN0NLQZUMtYSiX7xR6c5iatUqIe3mGy76T++jNfZWedx BG6Q== X-Gm-Message-State: AOAM531aq7VWaWNUuTEajCuaaTjxJRDd2CXIZMO4mc9MLCQinx7jkEcc oKeE1yGwrLmJEoMkte1QIfQxzjq/KuE= X-Google-Smtp-Source: ABdhPJyB7LicWmiaKhTj/MOAxL2NyKsn2SS+i0ZOfk+4vgm1FtLkR75CZD27pOXEHGvewZ/KzNUBRg== X-Received: by 2002:a4a:e8c9:: with SMTP id h9mr3121251ooe.12.1642784096951; Fri, 21 Jan 2022 08:54:56 -0800 (PST) Received: from thinkpad.localdomain ([2804:14d:5cd1:5d03:cf72:4317:3105:f6e5]) by smtp.gmail.com with ESMTPSA id y8sm1089271oou.23.2022.01.21.08.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 08:54:56 -0800 (PST) From: Luiz Sampaio To: Sean Young , Mauro Carvalho Chehab , =?utf-8?q?David_H=C3=A4rdeman?= Cc: linux-kernel@vger.kernel.org, Luiz Sampaio , linux-media@vger.kernel.org Subject: [PATCH 11/31] media: rc: changing LED_* from enum led_brightness to actual value Date: Fri, 21 Jan 2022 13:54:16 -0300 Message-Id: <20220121165436.30956-12-sampaio.ime@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220121165436.30956-1-sampaio.ime@gmail.com> References: <20220121165436.30956-1-sampaio.ime@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The enum led_brightness, which contains the declaration of LED_OFF, LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports max_brightness. --- drivers/media/rc/rc-main.c | 4 ++-- drivers/media/rc/redrat3.c | 4 ++-- drivers/media/rc/ttusbir.c | 4 ++-- drivers/media/rc/winbond-cir.c | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index b90438a71c80..76580f1920e2 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -641,7 +641,7 @@ static void ir_do_keyup(struct rc_dev *dev, bool sync) dev_dbg(&dev->dev, "keyup key 0x%04x\n", dev->last_keycode); del_timer(&dev->timer_repeat); input_report_key(dev->input_dev, dev->last_keycode, 0); - led_trigger_event(led_feedback, LED_OFF); + led_trigger_event(led_feedback, 0); if (sync) input_sync(dev->input_dev); dev->keypressed = false; @@ -812,7 +812,7 @@ static void ir_do_keydown(struct rc_dev *dev, enum rc_proto protocol, dev->device_name, keycode, protocol, scancode); input_report_key(dev->input_dev, keycode, 1); - led_trigger_event(led_feedback, LED_FULL); + led_trigger_event(led_feedback, 255); } /* diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c index cb22316b3f00..7c255f7d790c 100644 --- a/drivers/media/rc/redrat3.c +++ b/drivers/media/rc/redrat3.c @@ -855,7 +855,7 @@ static void redrat3_brightness_set(struct led_classdev *led_dev, enum struct redrat3_dev *rr3 = container_of(led_dev, struct redrat3_dev, led); - if (brightness != LED_OFF && atomic_cmpxchg(&rr3->flash, 0, 1) == 0) { + if (brightness != 0 && atomic_cmpxchg(&rr3->flash, 0, 1) == 0) { int ret = usb_submit_urb(rr3->flash_urb, GFP_ATOMIC); if (ret != 0) { dev_dbg(rr3->dev, "%s: unexpected ret of %d\n", @@ -919,7 +919,7 @@ static void redrat3_led_complete(struct urb *urb) break; } - rr3->led.brightness = LED_OFF; + rr3->led.brightness = 0; atomic_dec(&rr3->flash); } diff --git a/drivers/media/rc/ttusbir.c b/drivers/media/rc/ttusbir.c index 629787d53ee1..a295112644c3 100644 --- a/drivers/media/rc/ttusbir.c +++ b/drivers/media/rc/ttusbir.c @@ -44,7 +44,7 @@ static enum led_brightness ttusbir_brightness_get(struct led_classdev *led_dev) { struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); - return tt->led_on ? LED_FULL : LED_OFF; + return tt->led_on ? 255 : 0; } static void ttusbir_set_led(struct ttusbir *tt) @@ -70,7 +70,7 @@ static void ttusbir_brightness_set(struct led_classdev *led_dev, enum { struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); - tt->led_on = brightness != LED_OFF; + tt->led_on = brightness != 0; ttusbir_set_led(tt); } diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c index 94efb035d21b..d14e495a8641 100644 --- a/drivers/media/rc/winbond-cir.c +++ b/drivers/media/rc/winbond-cir.c @@ -265,7 +265,7 @@ wbcir_led_brightness_get(struct led_classdev *led_cdev) if (inb(data->ebase + WBCIR_REG_ECEIR_CTS) & WBCIR_LED_ENABLE) return LED_FULL; else - return LED_OFF; + return 0; } static void @@ -277,7 +277,7 @@ wbcir_led_brightness_set(struct led_classdev *led_cdev, led); wbcir_set_bits(data->ebase + WBCIR_REG_ECEIR_CTS, - brightness == LED_OFF ? 0x00 : WBCIR_LED_ENABLE, + brightness == 0 ? 0x00 : WBCIR_LED_ENABLE, WBCIR_LED_ENABLE); } @@ -1167,7 +1167,7 @@ wbcir_remove(struct pnp_dev *device) led_classdev_unregister(&data->led); /* This is ok since &data->led isn't actually used */ - wbcir_led_brightness_set(&data->led, LED_OFF); + wbcir_led_brightness_set(&data->led, 0); release_region(data->wbase, WAKEUP_IOMEM_LEN); release_region(data->ebase, EHFUNC_IOMEM_LEN); From patchwork Fri Jan 21 16:54:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Sampaio X-Patchwork-Id: 533993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1025C433FE for ; Fri, 21 Jan 2022 16:56:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379625AbiAUQ4t (ORCPT ); Fri, 21 Jan 2022 11:56:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379984AbiAUQzR (ORCPT ); Fri, 21 Jan 2022 11:55:17 -0500 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 224F8C061751; Fri, 21 Jan 2022 08:55:00 -0800 (PST) Received: by mail-ot1-x333.google.com with SMTP id a12-20020a0568301dcc00b005919e149b4cso12492855otj.8; Fri, 21 Jan 2022 08:55:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XRkMGPYm8YHI9B+ytD+Zs/rtt+wOfDZnupLp3J3rdss=; b=jhjODjRCQrcaRbsSvitlKjbN9/O+vC0R6ReJa9+BuXHVqBCBHDFTt+mY+MFSawgicb NeWPBaLvhJqg5Zeufmt+ChofbKnT53HI6Sg7oitjtE4PmBRxqRCgnBv2simLL9mkCsjs Edyph23cNwnKCtiV/riHxkPR0LxIjVDp/RjEwPtGfooXsrwsMPB5wpXOpY4TTcRlsrbo ee3mV5xQHarXvJY42PDZWd6BCTzPC50OCXq4ol7ud0KZwYoFCe4n/CB9ajcqCoYd7pKx xnuZZxWntLZ7cLv3seueKql40MqPzWsBObou3hoU/C6EtdaqQwPAmElqYp5MxDJHZEtJ Ew/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XRkMGPYm8YHI9B+ytD+Zs/rtt+wOfDZnupLp3J3rdss=; b=f3wlNHqkL49l9uLuBBe41WdZ+sLmy76ATEozk3x/c8eGBA/ehexSbGqS/DmEpev+4i fx5Lik05xoKfPQQGE5R3GPSkfLKH2mEyju2n2bon521qXMTtWF8+vWzhWvSh9gfGj+CY Nm2BadHbCPNd5QznlVbLyf8ZyBc/zqdwhUcnLGVZu48MUjFQLLH+a/u3usAFhcjz+14o 4PDpMK4nkpIVooZ05Atf7k6Pi6XXE6B1NId76Qfe9Iuy+ba52N0+N0QRCOBHNLxb12Ar gQ3MPrtKSRsQ4KlPj9WD/eaDv8UODaAPWFCn3xgLw92V5/FV5cwqLeuZUrk53cFrapDw klXA== X-Gm-Message-State: AOAM5339m8Vhibg14GDkAush7rz+ajqCGwTuYrsUuFNDMpM7iFMS0QWN JtJX9J2EnXARrZFWa7VwvQU= X-Google-Smtp-Source: ABdhPJzhEd2XBHo2Fm46jjhKsmeir1zZ+dSho/AoK/PAiPC26SPAPqy1RAFOSzOMiROSRYqePduSmg== X-Received: by 2002:a05:6830:40c6:: with SMTP id h6mr3264903otu.247.1642784099522; Fri, 21 Jan 2022 08:54:59 -0800 (PST) Received: from thinkpad.localdomain ([2804:14d:5cd1:5d03:cf72:4317:3105:f6e5]) by smtp.gmail.com with ESMTPSA id y8sm1089271oou.23.2022.01.21.08.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 08:54:59 -0800 (PST) From: Luiz Sampaio To: Mauro Carvalho Chehab Cc: linux-kernel@vger.kernel.org, Luiz Sampaio , linux-media@vger.kernel.org Subject: [PATCH 12/31] media: v4l2-core: changing LED_* from enum led_brightness to actual value Date: Fri, 21 Jan 2022 13:54:17 -0300 Message-Id: <20220121165436.30956-13-sampaio.ime@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220121165436.30956-1-sampaio.ime@gmail.com> References: <20220121165436.30956-1-sampaio.ime@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The enum led_brightness, which contains the declaration of LED_OFF, LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports max_brightness. Acked-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-flash-led-class.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-flash-led-class.c b/drivers/media/v4l2-core/v4l2-flash-led-class.c index e70e128ccc9c..a47ac654c9f4 100644 --- a/drivers/media/v4l2-core/v4l2-flash-led-class.c +++ b/drivers/media/v4l2-core/v4l2-flash-led-class.c @@ -234,11 +234,11 @@ static int v4l2_flash_s_ctrl(struct v4l2_ctrl *c) case V4L2_CID_FLASH_LED_MODE: switch (c->val) { case V4L2_FLASH_LED_MODE_NONE: - led_set_brightness_sync(led_cdev, LED_OFF); + led_set_brightness_sync(led_cdev, 0); return led_set_flash_strobe(fled_cdev, false); case V4L2_FLASH_LED_MODE_FLASH: /* Turn the torch LED off */ - led_set_brightness_sync(led_cdev, LED_OFF); + led_set_brightness_sync(led_cdev, 0); if (ctrls[STROBE_SOURCE]) { external_strobe = (ctrls[STROBE_SOURCE]->val == V4L2_FLASH_STROBE_SOURCE_EXTERNAL);