Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1284846
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Zhaoxiu Zeng <zhaoxiu.zeng@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 05/10] exynos4-is: Replace "hweight32(mask) == 1" with "is_power_of_2(mask)" |
| Date | Sun, 06 Dec 2015 11:50:01 +0100 |
| Message-ID | <qCF3b-5NB-1@gated-at.bofh.it> (permalink) |
| X-Original-To | kyungmin.park@samsung.com, s.nawrocki@samsung.com, mchehab@osg.samsung.com, kgene@kernel.org, k.kozlowski@samsung.com, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bCIbfc8wx9y+M6mna/oh36xteBffdqSgV1aweysLQuY=; b=qBdQhiyhK7vqH9sWkJuKAFTKfJ7eDiF2YbbxIg+XXd0XZhg/7280LbATR17ioxKpxm 0g55pnC3l6h10jIhwUTQxRNELiK7f966CGcoL2RsCWe9jAOqEWWQk1FQrt+tve1Dls3D 8AE6nzviqGqqXewmGMMYGHDh/CAUs73TW5AlLdi9DH5Qsrv5cTaUHyGtUBR8dqFN+tho h1MvaCM3z7oQJFZJmcEMF5xfJM2Gy0rDWGIreVsZ9NWFdw2aEycLyW0bUF2PIn36Lyu9 VEb19jRBbjCz+Hol6GsQDxZvL7vBZjnMx6OxyA2O7pos0mxE3xBXMwRXn/3Vw7eDyUY3 WYVg== |
| X-Received | by 10.98.73.133 with SMTP id r5mr34510970pfi.160.1449398780561; Sun, 06 Dec 2015 02:46:20 -0800 (PST) |
| X-Mailer | git-send-email 2.5.0 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 36 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-kernel@vger.kernel.org, Zeng Zhaoxiu <zhaoxiu.zeng@gmail.com> |
| X-Original-Date | Sun, 6 Dec 2015 18:44:29 +0800 |
| X-Original-Message-ID | <1449398669-14507-1-git-send-email-zhaoxiu.zeng@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1284846 |
Show key headers only | View raw
From: Zeng Zhaoxiu <zhaoxiu.zeng@gmail.com>
Signed-off-by: Zeng Zhaoxiu <zhaoxiu.zeng@gmail.com>
---
drivers/media/platform/exynos4-is/fimc-is-regs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/exynos4-is/fimc-is-regs.c b/drivers/media/platform/exynos4-is/fimc-is-regs.c
index cfe4406..ec75a24 100644
--- a/drivers/media/platform/exynos4-is/fimc-is-regs.c
+++ b/drivers/media/platform/exynos4-is/fimc-is-regs.c
@@ -11,6 +11,7 @@
* published by the Free Software Foundation.
*/
#include <linux/delay.h>
+#include <linux/log2.h>
#include "fimc-is.h"
#include "fimc-is-command.h"
@@ -107,7 +108,7 @@ int fimc_is_hw_get_params(struct fimc_is *is, unsigned int num_args)
void fimc_is_hw_set_isp_buf_mask(struct fimc_is *is, unsigned int mask)
{
- if (hweight32(mask) == 1) {
+ if (is_power_of_2(mask)) {
dev_err(&is->pdev->dev, "%s(): not enough buffers (mask %#x)\n",
__func__, mask);
return;
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 05/10] exynos4-is: Replace "hweight32(mask) == 1" with "is_power_of_2(mask)" Zhaoxiu Zeng <zhaoxiu.zeng@gmail.com> - 2015-12-06 11:50 +0100
csiph-web