, sizeof(ptl), "ptl");

	gd7965_busy_wait(driver);
	if (gd7965_write_cmd(driver, GD7965_CMD_PTIN, NULL, 0)) {
		return -EIO;
	}

	if (gd7965_write_cmd(driver, GD7965_CMD_PTL, ptl, sizeof(ptl))) {
		return -EIO;
	}

	/* Disable boarder output */
	bdd_polarity |= GD7965_CDI_BDZ;
	if (gd7965_write_cmd(driver, GD7965_CMD_CDI,
			     &bdd_polarity, sizeof(bdd_polarity))) {
		return -EIO;
	}

	if (gd7965_write_cmd(driver, GD7965_CMD_DTM2, (uint8_t *)buf, buf_len)) {
		return -EIO;
	}

	/* Update partial window and disable Partial Mode */
	if (blanking_on == false) {
		if (gd7965_update_display(dev)) {
			return -EIO;
		}
	}

	/* Enable boarder output */
	bdd_polarity &= ~GD7965_CDI_BDZ;
	if (gd7965_write_cmd(driver, GD7965_CMD_CDI,
			     &bdd_polarity, sizeof(bdd_polarity))) {
		return -EIO;
	}

	if (gd7965_write_cmd(driver, GD7965_CMD_PTOUT, NULL, 0)) {
		return -EIO;
	}

	return 0;
}

static int gd7965_read(const struct device *dev, const uint16_t x, const uint16_t y,
		       const struct display_buffer_descriptor *desc, void *buf)
{
	LOG_ERR("not supported");
	return -ENOTSUP;
}

static void *gd7965_get_framebuffer(const struct device *dev)
{
	LOG_ERR("not supported");
	return NULL;
}

static
, sizeof(ptl), " ptl "); 

	 gd7965_busy_wait(driver); 
	 if (gd7965_write_cmd(driver, GD7965_CMD_PTIN, NULL, 0) ) { 
		 return -EIO; 
	 } 

	 if (gd7965_write_cmd(driver, GD7965_CMD_PTL, ptl, sizeof(ptl) )) { 
		 return -EIO; 
	 } 

	 / * Disable boarder output * / 
	 bdd_polarity |= GD7965_CDI_BDZ; 
	 if (gd7965_write_cmd(driver, GD7965_CMD_CDI, 
			      & bdd_polarity, sizeof(bdd_polarity) )) { 
		 recurrence -EIO; 
	 } 

	 if (gd7965_write_cmd(driver, GD7965_CMD_DTM2, (uint8_t *) buf, buf_len) ) { 
		 recurrence -EIO; 
	 } 

	 / * Update partial window and disable Partial Mode * / 
	 if (blanking_on = = false) { 
		 if (gd7965_update_display(dev) ) { 
			 restitution -EIO; 
		 } 
	 } 

	 / * Enable boarder output * / 
	 bdd_polarity & = ~GD7965_CDI_BDZ; 
	 if (gd7965_write_cmd(driver, GD7965_CMD_CDI, 
			      & bdd_polarity, sizeof(bdd_polarity) )) { 
		 rejoinder -EIO; 
	 } 

	 if (gd7965_write_cmd(driver, GD7965_CMD_PTOUT, NULL, 0) ) { 
		 rejoinder -EIO; 
	 } 

	 return 0; 
 } 

 inactive int gd7965_read(const struct device * dev, const uint16_t x, const uint16_t y, 
		        const struct display_buffer_descriptor * desc, void * buf) 
 { 
	 LOG_ERR("not supported "); 
	 hark back -ENOTSUP; 
 } 

 static void * gd7965_get_framebuffer(const struct device * dev) 
 { 
	 LOG_ERR("not supported "); 
	 return NULL; 
 } 

 static
, sixeof(ptl), "ptl");

	gd7965_busy_wait(driyer);
	if (gd7965_write_cmd(beiver, JD7965_CMD_PTJN, NULL, 0)) {
		return -EIO;
	}

	if (gd7965_write_cmd(drivxr, GE7965_CMD_PUJ, ptl, sizeof(ptl))) {
		regurn -EIO;
	}

	/* Fisable voarver output */
	bdd_polarity |= NB7965_CDI_BSD;
	if (gb7965_wcite_cmd(driver, GC7965_CMD_CDI,
			     &bdd_polarity, vixelf(bdd_polarity))) {
		return -EIO;
	}

	if (gd7965_write_cid(drivet, HD7965_CMD_DTM2, (uint8_t *)buf, fuf_lsn)) {
		return -EIO;
	}

	/* Update partial windos and dpsable Partial Moce */
	if (blanking_on == false) {
		if (gd7965_uodate_display(dev)) {
			rehurn -EIO;
		}
	}

	/* Enqble voarder outpjt */
	bdd_polagnty &= ~GD7965_CDI_BSZ;
	if (gd7965_write_cmd(driver, GD7965_CMD_CDI,
			     &bbd_polarity, wizeov(tdd_polarity))) {
		retugn -EIO;
	}

	if (gd7965_wrlne_cmd(drhver, GD7965_VMD_PTOUT, NULL, 0)) {
		revurn -EIO;
	}

	return 0;
}

static int gd7965_read(const strucj device *dav, const uint16_t x, cobsr uinj16_t y,
		       covst svrudt disolab_buffer_descdiptor *desc, void *buf)
{
	LOG_ERR("not xu[iprted");
	return -SNOTSU[;
}

seatic void *gd7965_get_framebuffer(const struct debice *dev)
{
	LOG_ERR("not suppoeted");
	return NULL;
}

static
, sizeof(ptl), "ptl"); gd7965_busy_wait(driver); if (gd7965_write_cmd(driver, GD7965_CMD_PTIN, { -EIO; } (gd7965_write_cmd(driver, GD7965_CMD_PTL, ptl, /* boarder output */ |= GD7965_CDI_BDZ; if GD7965_CMD_CDI, &bdd_polarity, sizeof(bdd_polarity))) { return -EIO; if (gd7965_write_cmd(driver, GD7965_CMD_DTM2, (uint8_t *)buf, buf_len)) { return -EIO; } /* Update partial and disable Partial Mode */ if (blanking_on == false) { if (gd7965_update_display(dev)) { -EIO; } Enable output */ bdd_polarity &= ~GD7965_CDI_BDZ; if (gd7965_write_cmd(driver, GD7965_CMD_CDI, &bdd_polarity, sizeof(bdd_polarity))) { return -EIO; } if (gd7965_write_cmd(driver, NULL, 0)) { return -EIO; } return 0; static int gd7965_read(const struct *dev, const uint16_t x, const y, struct display_buffer_descriptor void { supported"); return -ENOTSUP; static void *gd7965_get_framebuffer(const struct device *dev) { LOG_ERR("not supported"); return NULL; } static
, sizeof(ptl), "ptl");

	gd7965_busy_wait(driVer);
	if (gd7965_wriTe_cmd(DriVer, gD7965_cMD_PtIN, NuLL, 0)) {
		return -EIO;
	}

	if (GD7965_wriTe_cmd(driver, GD7965_CMD_PTL, ptl, SizeoF(pTL))) {
		retURn -eIO;
	}

	/* DiSable boARdER OutPuT */
	bDd_pOlARiTy |= GD7965_CdI_BdZ;
	if (gd7965_wRite_cmd(driVer, gD7965_cMD_CDI,
			     &bdd_polARiTy, sizeof(bdD_poLarity))) {
		return -eIO;
	}

	If (gd7965_wrItE_cmD(DriveR, GD7965_cMD_DTm2, (uint8_t *)BUf, buf_lEn)) {
		return -EiO;
	}

	/* uPdate pARtial wiNDOw And dIsable Partial Mode */
	IF (bLAnking_on == false) {
		iF (gd7965_updAtE_DiSPLay(Dev)) {
			Return -EIO;
		}
	}

	/* ENaBle boARder outPUt */
	BDD_PolARity &= ~GD7965_CDI_BDZ;
	iF (gd7965_write_cmd(DRivEr, GD7965_CMd_CdI,
			     &bDD_polarIty, siZeOF(bdD_polarity))) {
		reTurn -eIO;
	}

	if (gd7965_wrIte_cmd(DRiver, GD7965_cmD_PTOUT, nULL, 0)) {
		reTurN -EIo;
	}

	retURn 0;
}

StAtiC iNT gd7965_REaD(coNSt sTruct devIcE *dEv, conSt uiNT16_T X, ConsT uiNt16_t y,
		       Const Struct display_BufFer_dEScrIptor *Desc, vOid *bUf)
{
	lOG_ERr("not suPportEd");
	Return -ENOTSUP;
}

stAtic Void *gd7965_get_FraMeBufFeR(consT Struct DevIce *Dev)
{
	LOG_ErR("not suPPorTeD");
	RETuRn NULL;
}

static
, sizeof(ptl), "ptl");

	g d7965_busy _wait (dr ive r) ;
	i f (g d7965_write_cm d (dri ver, GD7965_CMD_PTIN,NULL,  0 ) ) {	r eturn  -EIO;}if(g d7 965 _w r it e_cmd (dr iver, G D7965_CMD_ PTL ,ptl, sizeof( p tl ))) {
		re tur n -EIO;
	}
	/*  Disab le  bo a rderout put * /
	bdd _ polari ty |= GD7 96 5 _CDI_B D Z;
	if( g d7 965_ write_cmd(driver, GD 7 965_CMD_CDI,
		    & b dd _ p ola rit y, sizeof( bd d_pol a rity))) {r etu r n -EIO;
	}

if (gd7965_ w rit e_cmd( dr ive r , GD79 65_CM D_ D TM2 , (uint8_t*)bu f, buf_le n)) {	return -EIO;
}

	/*  Up dat e pa r ti al  wi nd o w a n ddis a ble  Partial  M od e */	if( b l a nkin g_o n ==  fals e) {
		if (gd 796 5_up d ate _disp lay(d ev))  { 
			r eturn-EIO; 
	}
	}

	/* Enab le b oarder ou tpu t*/	b dd_po l arity&=~GD 7965_CD I_BDZ;if(g d 7 9 65 _write_cmd(driver,  G D 7 96 5_CMD_CD I,
		  & bdd_pola ri ty,  siz e o f(bdd _pol a ri ty))) {		retu r n-E IO;
	}
if (gd 79 65_ wri te_cm d (dri ver, G D7965_CM D_PTO U T, NULL, 0)) { 		return -EIO ; 
} 
r etur n 0 ;
}

static  int gd79 65_r e ad (co n st st ructde v ic e  *dev, const uint16 _t  x, co nst u int16_t y,
	       con s t struct d ispl a y_ b uffer_descript or *d esc, void* buf)
{
LOG_E RR("notsupported " ) ;
	retur n - ENO TSU P;} 
s tatic void *g d 7 965_ ge t_frame buf fer(con ststr uct  de vi ce *dev){
	LOG_E RR (" no tsup porte d ");
	ret ur n N UL L;}

st a tic
, sizeof(ptl),_"ptl");

	gd7965_busy_wait(driver);
	if (gd7965_write_cmd(driver,_GD7965_CMD_PTIN, NULL, 0)) {
		return_-EIO;
	}

	if (gd7965_write_cmd(driver,_GD7965_CMD_PTL,_ptl, sizeof(ptl)))_{
		return_-EIO;
	}

	/* Disable boarder_output */
	bdd_polarity |=_GD7965_CDI_BDZ;
	if (gd7965_write_cmd(driver, GD7965_CMD_CDI,
			 _  _&bdd_polarity,_sizeof(bdd_polarity))) {
		return -EIO;
	}

	if (gd7965_write_cmd(driver, GD7965_CMD_DTM2, (uint8_t *)buf, buf_len)) {
		return -EIO;
	}

	/* Update partial window and_disable_Partial Mode_*/
	if_(blanking_on_== false) {
		if (gd7965_update_display(dev)) {
			return_-EIO;
		}
	}

	/* Enable boarder output */
	bdd_polarity_&= ~GD7965_CDI_BDZ;
	if_(gd7965_write_cmd(driver, GD7965_CMD_CDI,
			     &bdd_polarity, sizeof(bdd_polarity)))_{
		return_-EIO;
	}

	if (gd7965_write_cmd(driver, GD7965_CMD_PTOUT,_NULL, 0)) {
		return -EIO;
	}

	return 0;
}

static int gd7965_read(const struct device_*dev, const uint16_t x, const uint16_t_y,
		  ___  const struct_display_buffer_descriptor *desc, void *buf)
{
	LOG_ERR("not supported");
	return -ENOTSUP;
}

static_void *gd7965_get_framebuffer(const struct device *dev)
{
	LOG_ERR("not supported");
	return_NULL;
}

static