Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd31dae7 authored by Philipp Guendisch's avatar Philipp Guendisch Committed by Mauro Carvalho Chehab
Browse files

media: staging: atomisp: hmm: Fixed comment style



This patch fixed comment style. Semantic should not be affected.
There are also two warnings left about too long lines, which
reduce readability if changed.

Signed-off-by: default avatarPhilipp Guendisch <philipp.guendisch@fau.de>
Signed-off-by: default avatarChris Baller <chris.baller@gmx.de>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 05f1d92f
Loading
Loading
Loading
Loading
+23 −21
Original line number Diff line number Diff line
@@ -46,10 +46,12 @@ static ia_css_ptr dummy_ptr;
static bool hmm_initialized;
struct _hmm_mem_stat hmm_mem_stat;

/* p: private
   s: shared
   u: user
   i: ion */
/*
 * p: private
 * s: shared
 * u: user
 * i: ion
 */
static const char hmm_bo_type_string[] = "psui";

static ssize_t bo_show(struct device *dev, struct device_attribute *attr,
@@ -213,9 +215,7 @@ void hmm_cleanup(void)
{
	sysfs_remove_group(&atomisp_dev->kobj, atomisp_attribute_group);

	/*
	 * free dummy memory first
	 */
	/* free dummy memory first */
	hmm_free(dummy_ptr);
	dummy_ptr = 0;

@@ -230,8 +230,10 @@ ia_css_ptr hmm_alloc(size_t bytes, enum hmm_bo_type type,
	struct hmm_buffer_object *bo;
	int ret;

	/* Check if we are initialized. In the ideal world we wouldn't need
	   this but we can tackle it once the driver is a lot cleaner */
	/*
	 * Check if we are initialized. In the ideal world we wouldn't need
	 * this but we can tackle it once the driver is a lot cleaner
	 */

	if (!hmm_initialized)
		hmm_init();