/* * Copyright (C) 2015 MediaTek Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include "flashlight-core.h" #if defined(mt6739) #if defined(CONFIG_MTK_FLASHLIGHT_LED191) const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights_led191", 0, 0}, {1, 0, 0, "flashlights_led191", 1, 0}, }; #else const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-rt4505", 0, 0}, }; #endif #elif defined(mt6757) #if defined(evb6757p_dm_64) || defined(k57pv1_dm_64) || \ defined(k57pv1_64_baymo) || defined(k57pv1_dm_64_bif) || \ defined(k57pv1_dm_64_baymo) || defined(k57pv1_dm_teei_2g) || \ defined(k57pv1_dm_64_zoom) const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-rt5081", 0, 0}, {0, 1, 0, "flashlights-rt5081", 1, 0}, }; #elif defined(CONFIG_MTK_FLASHLIGHT_RT5081) const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-rt5081", 0, 0}, {0, 1, 0, "flashlights-rt5081", 1, 0}, }; #else const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-lm3643", 0, 0}, {0, 1, 0, "flashlights-lm3643", 1, 0}, }; #endif #elif defined(mt6758) const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-mt6370", 0, 0}, {0, 1, 0, "flashlights-mt6370", 1, 0}, }; #elif defined(mt6759) const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-rt5081", 0, 0}, {0, 1, 0, "flashlights-rt5081", 1, 0}, }; #elif defined(mt6763) const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-mt6370", 0, 0}, {0, 1, 0, "flashlights-mt6370", 1, 0}, }; #elif defined(mt6799) const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-mt6336", 0, 0}, {0, 1, 0, "flashlights-mt6336", 1, 0}, }; #elif defined(mt8167) const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-lm3642", 0, 0}, }; #else const struct flashlight_device_id flashlight_id[] = { /* {TYPE, CT, PART, "NAME", CHANNEL, DECOUPLE} */ {0, 0, 0, "flashlights-none", -1, 0}, {0, 1, 0, "flashlights-none", -1, 0}, {1, 0, 0, "flashlights-none", -1, 0}, {1, 1, 0, "flashlights-none", -1, 0}, {0, 0, 1, "flashlights-none", -1, 0}, {0, 1, 1, "flashlights-none", -1, 0}, {1, 0, 1, "flashlights-none", -1, 0}, {1, 1, 1, "flashlights-none", -1, 0}, }; #endif const int flashlight_device_num = sizeof(flashlight_id) / sizeof(struct flashlight_device_id);