From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Frank Subject: [PATCH v3 0/2] ACPI: video: get rid of magic numbers, do other refactoring Date: Wed, 19 Apr 2017 13:36:16 +0300 Message-ID: <20170419103618.20939-1-mail@dmitryfrank.com> References: <20170418123558.12436-1-mail@dmitryfrank.com> Return-path: Received: from forward8h.cmail.yandex.net ([87.250.230.219]:58038 "EHLO forward8h.cmail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933813AbdDSKg6 (ORCPT ); Wed, 19 Apr 2017 06:36:58 -0400 In-Reply-To: <20170418123558.12436-1-mail@dmitryfrank.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J . Wysocki" Cc: Zhang Rui , Len Brown , Felipe Contreras , linux-acpi@vger.kernel.org, Dmitry Frank Hi, This patchset makes the code more self-documented and clean. Initially I was chasing a bug with the backlight on my laptop. Even though it's clear now what causes the issue, I'm not sure what's the proper way to fix it, so for now I just wrote about my research with the hope that someone could help: http://www.spinics.net/lists/linux-acpi/msg73638.html , comments are appreciated! So this patchset is a cleanup which I've done on my way. Dmitry Frank (2): ACPI: video: get rid of magic numbers and use enum instead ACPI: video: add comments about subtle cases drivers/acpi/acpi_video.c | 157 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 111 insertions(+), 46 deletions(-) -- 2.11.0